退款失败测试

This commit is contained in:
2024-12-03 08:58:43 +08:00
parent bf4117da47
commit 52d77c62ad

View File

@@ -115,8 +115,8 @@ class FinanceController extends BaseAdminController
*/
public function actionAdminRefundAgree()
{
ds('123');
$identity = \Yii::$app->user->identity;
ds($identity);
if ($identity != 10) {
throw new Exception('权限不足,仅超管有权限退款');
}