|
|
@@ -37,6 +37,20 @@ use Yii;
|
|
|
class ShopController extends BaseController {
|
|
|
public $modelClass = DecOrder::class;
|
|
|
|
|
|
+ protected $_method_not_check = [
|
|
|
+ 'actionVerifyApproachOrder'
|
|
|
+ ];
|
|
|
+
|
|
|
+ public function beforeAction($action)
|
|
|
+ {
|
|
|
+ $currentAction = $action->id;
|
|
|
+ if (in_array($currentAction, $this->_method_not_check)) {
|
|
|
+ $action->controller->enableCsrfValidation = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ return parent::beforeAction($action);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 商品列表
|
|
|
* @return mixed
|