退款失败测试
This commit is contained in:
@@ -115,6 +115,7 @@ class FinanceController extends BaseAdminController
|
||||
*/
|
||||
public function actionAdminRefundAgree()
|
||||
{
|
||||
ds('123');
|
||||
$identity = \Yii::$app->user->identity;
|
||||
if ($identity != 10) {
|
||||
throw new Exception('权限不足,仅超管有权限退款');
|
||||
@@ -123,7 +124,6 @@ class FinanceController extends BaseAdminController
|
||||
// 获取前端传递的POST数据
|
||||
$post = \Yii::$app->request->post();
|
||||
|
||||
ds($post);
|
||||
// 对必要的字段进行验证
|
||||
$this->requestValidate($post, [
|
||||
['id', 'required'],
|
||||
|
||||
Reference in New Issue
Block a user