CustomController.php 583 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace mall\controllers;
  3. use bizHd\custom\classes\CustomClass;
  4. use common\components\util;
  5. class CustomController extends BaseController
  6. {
  7. public $guestAccess = ['init-custom'];
  8. //生成客户信息 shish 2021.5.1
  9. public function actionInitCustom()
  10. {
  11. $custom = [];
  12. if(!empty($this->shopId)){
  13. $custom = CustomClass::replaceCustom($this->sjId, $this->user, $this->shopId);
  14. if (empty($custom)) {
  15. util::fail('没有找到客户信息');
  16. }
  17. }
  18. util::success($custom);
  19. }
  20. }