Browse Source

修复添加sku方法response格式错误

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
c67450c975
  1. 5
      backend/config/main.php
  2. 1
      vendor/antgoods/goods/src/controllers/GoodsController.php

5
backend/config/main.php

@ -16,7 +16,10 @@ return [
], ],
'components' => [ 'components' => [
'request' => [ 'request' => [
'csrfParam' => '_csrf-backend',
'parsers' => [
'application/json' => 'yii\web\JsonParser',
],
'csrfParam' => '_csrf-api',
], ],
'user' => [ 'user' => [
'identityClass' => 'common\models\User', 'identityClass' => 'common\models\User',

1
vendor/antgoods/goods/src/controllers/GoodsController.php

@ -13,6 +13,7 @@ use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter; use yii\filters\VerbFilter;
use antgoods\goods\logic\goods\GoodsManager; use antgoods\goods\logic\goods\GoodsManager;
use common\models\ars\File; use common\models\ars\File;
use yii\web\Response;
/** /**
* GoodsController implements the CRUD actions for Goods model. * GoodsController implements the CRUD actions for Goods model.

Loading…
Cancel
Save