退款失败测试
This commit is contained in:
@@ -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('权限不足,仅超管有权限退款');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user