退款失败测试

This commit is contained in:
2024-12-03 09:05:48 +08:00
parent 7bef770216
commit 1975a78280

View File

@@ -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'],