退款失败测试
This commit is contained in:
@@ -117,6 +117,7 @@ class FinanceController extends BaseAdminController
|
||||
{
|
||||
$identity = \Yii::$app->user->identity;
|
||||
|
||||
ds($identity);
|
||||
if ($identity != 10) {
|
||||
throw new Exception('权限不足,仅超管有权限退款');
|
||||
}
|
||||
@@ -128,7 +129,6 @@ class FinanceController extends BaseAdminController
|
||||
throw new Exception('参数错误'. $e->getMessage(). '--'. $e->getLine());
|
||||
}
|
||||
|
||||
ds($post);
|
||||
// 对必要的字段进行验证
|
||||
$this->requestValidate($post, [
|
||||
['id', 'required'],
|
||||
|
||||
Reference in New Issue
Block a user