退款失败测试
This commit is contained in:
@@ -116,7 +116,7 @@ class FinanceController extends BaseAdminController
|
||||
public function actionAdminRefundAgree()
|
||||
{
|
||||
$identity = \Yii::$app->user->identity;
|
||||
ds($identity);
|
||||
|
||||
if ($identity != 10) {
|
||||
throw new Exception('权限不足,仅超管有权限退款');
|
||||
}
|
||||
@@ -137,6 +137,7 @@ class FinanceController extends BaseAdminController
|
||||
// 根据POST数据中的id查询对应的订单信息
|
||||
$orderInfo = $orderModel->find()->where(['id' => $post['id']])->asArray()->one();
|
||||
|
||||
ds($orderInfo);
|
||||
// 开启数据库事务
|
||||
$t = \Yii::$app->db->beginTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user