| 123456789101112131415161718192021222324252627 |
- <?php
- namespace mall\controllers;
- use bizHd\custom\classes\CustomClass;
- use Yii;
- use common\components\util;
- class CustomController extends BaseController
- {
- public $guestAccess = ['init-custom'];
- //生成客户信息 shish 2021.5.1
- public function actionInitCustom()
- {
- $custom = [];
- if(!empty($this->shopId)){
- $custom = CustomClass::replaceCustom($this->sjId, $this->user, $this->shopId);
- if (empty($custom)) {
- util::fail('没有找到客户信息');
- }
- }
- util::success($custom);
- }
- }
|