ShopController.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. <?php
  2. namespace hd\controllers;
  3. use biz\shop\classes\ShopClass;
  4. use biz\sj\services\MerchantExtendService;
  5. use bizGhs\admin\classes\AdminClass;
  6. use bizGhs\custom\classes\CustomClass;
  7. use bizHd\admin\classes\ShopAdminClass;
  8. use bizHd\custom\classes\CustomClass as HdCustomClass;
  9. use bizHd\custom\classes\HdClass;
  10. use bizHd\merchant\classes\SjClass;
  11. use bizHd\merchant\services\ShopService;
  12. use bizHd\purchase\classes\PurchaseClass;
  13. use bizHd\saas\services\RegionService;
  14. use bizHd\shop\classes\ShopExtClass;
  15. use common\components\dict;
  16. use common\components\dirUtil;
  17. use common\components\imgUtil;
  18. use common\components\stringUtil;
  19. use common\components\util;
  20. use common\components\wxUtil;
  21. use Yii;
  22. class ShopController extends BaseController
  23. {
  24. public $guestAccess = ['all', 'gathering-img-url', 'check-shop'];
  25. public function actionModifySjName()
  26. {
  27. $get = Yii::$app->request->get();
  28. $adminId = $this->adminId;
  29. $staff = $this->shopAdmin;
  30. if ($staff->founder != 2 && $adminId != 4) {
  31. util::fail('老板才能改店名');
  32. }
  33. $name = $get['name'] ?? '';
  34. if (empty($name)) {
  35. util::fail('请填写名称');
  36. }
  37. //开启事务
  38. $connection = Yii::$app->db;
  39. $transaction = $connection->beginTransaction();
  40. try {
  41. $shop = $this->shop;
  42. $shop->merchantName = $name;
  43. $shop->save();
  44. $sj = SjClass::getById($shop->sjId, true);
  45. if (empty($sj)) {
  46. util::fail('门店信息缺失呢');
  47. }
  48. $sj->name = $name;
  49. $sj->save();
  50. $fullName = $shop->shopName == '首店' ? $name : $name . ' ' . $shop->shopName;
  51. $shopId = $shop->id;
  52. HdClass::updateByCondition(['shopId' => $shopId], ['name' => $fullName]);
  53. CustomClass::updateByCondition(['shopId' => $shopId], ['originName' => $fullName]);
  54. $transaction->commit();
  55. util::complete('修改成功');
  56. } catch (\Exception $exception) {
  57. $transaction->rollBack();
  58. Yii::error("修改门店名称失败:" . $exception->getMessage());
  59. util::fail('修改门店名称失败');
  60. }
  61. }
  62. //我的可以进入的门店 ssh 20230424
  63. public function actionMyShop()
  64. {
  65. $staff = $this->shopAdmin;
  66. $shopList = [];
  67. if (isset($staff->super) && $staff->super == 1) {
  68. $sjId = $this->sjId ?? 0;
  69. $shopList = ShopClass::getAllByCondition(['sjId' => $sjId, 'ptStyle' => 1], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
  70. }
  71. $adminId = $this->adminId ?? 0;
  72. $staffList = ShopAdminClass::getAllByCondition(['adminId' => $adminId], null, '*', null, true);
  73. $mainIdList = [];
  74. if (!empty($staffList)) {
  75. foreach ($staffList as $staff) {
  76. $isPt = $staff->isPt ?? 0;
  77. $delStatus = $staff->delStatus ?? 0;
  78. //$super = $staff->super ?? 0;
  79. $mainId = $staff->mainId ?? 0;
  80. if ($isPt == 0 && $delStatus == 0) {
  81. $mainIdList[] = $mainId;
  82. }
  83. }
  84. }
  85. if (!empty($mainIdList)) {
  86. $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList], 'ptStyle' => 1], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
  87. if (!empty($addShopList)) {
  88. foreach ($addShopList as $addShop) {
  89. $addShopId = $addShop['id'] ?? 0;
  90. if (isset($shopList[$addShopId]) == false) {
  91. $shopList[$addShopId] = $addShop;
  92. }
  93. }
  94. }
  95. }
  96. $list = array_values($shopList);
  97. util::success(['list' => $list]);
  98. }
  99. //是否开启完整功能 ssh 20230226
  100. public function actionChangeOnlyCg()
  101. {
  102. $shop = $this->shop;
  103. $get = Yii::$app->request->get();
  104. $onlyCg = $get['onlyCg'] ?? 1;
  105. $shop->onlyCg = $onlyCg;
  106. $shop->save();
  107. util::complete('操作成功');
  108. }
  109. public function actionCheckShop()
  110. {
  111. $get = Yii::$app->request->get();
  112. $mobile = $get['mobile'] ?? '';
  113. if(empty($mobile)){
  114. util::success(['has' => 0]);
  115. }
  116. $shop = ShopClass::getByCondition(['mobile' => $mobile], true);
  117. if (!empty($shop)) {
  118. util::success(['has' => 1]);
  119. }
  120. util::success(['has' => 0]);
  121. }
  122. //获取当前门店信息 ssh 2021.3.27
  123. public function actionCurrentShop()
  124. {
  125. $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shop->id], false, false, 'reachVip');
  126. $shop = $this->shop->attributes;
  127. $shop['reachVip'] = $shopExt['reachVip'];
  128. util::success($shop);
  129. }
  130. //门店列表 ssh 20202.2.29
  131. public function actionList()
  132. {
  133. $where = [];
  134. $where['sjId'] = $this->sjId;
  135. $where['delStatus'] = 0;
  136. $list = \bizHd\shop\classes\ShopClass::getShopList($where);
  137. util::success($list);
  138. }
  139. //更新门店 ssh 2020.2.29
  140. public function actionUpdate()
  141. {
  142. $data = Yii::$app->request->post();
  143. $data['sjId'] = $this->sjId;
  144. $id = isset($data['id']) ? $data['id'] : 0;
  145. unset($data['id']);
  146. $data['meetNum'] = isset($data['meetNum']) ? intval($data['meetNum']) : 0;
  147. $data['meetAmount'] = isset($data['meetAmount']) ? floatval($data['meetAmount']) : 0;
  148. $data['cutAmount'] = isset($data['cutAmount']) ? floatval($data['cutAmount']) : 0;
  149. $shop = ShopService::getById($id);
  150. ShopClass::valid($shop, $this->sjId);
  151. $data['img'] = isset($data['img']) && is_array($data['img']) ? json_encode($data['img']) : '';
  152. //手机号具有唯一性,暂时不允许修改 --- 同批发端 app-ghs/controllers/ShopController.php 保持一致
  153. unset($data['mobile']);
  154. // 添加事务处理
  155. $connection = Yii::$app->db;
  156. $transaction = $connection->beginTransaction();
  157. try {
  158. ShopClass::updateShop($shop, $data);
  159. $transaction->commit();
  160. util::complete();
  161. } catch (\Exception $exception) {
  162. $transaction->rollBack();
  163. Yii::error("更新门店失败:" . $exception->getMessage());
  164. util::fail('更新门店失败');
  165. }
  166. }
  167. public function actionAdd()
  168. {
  169. $data = Yii::$app->request->post();
  170. $data['sjId'] = $this->sjId;
  171. $data['shopId'] = $this->shopId;
  172. if (isset($data['shopName']) == false || empty($data['shopName'])) {
  173. util::fail('请填写门店名称');
  174. }
  175. $sj = $this->sj;
  176. $sjName = $sj->name ?? '';
  177. $data['merchantName'] = $sjName;
  178. $ptStyle = $sj->style ?? dict::getDict('ptStyle', 'hd');
  179. $data['ptStyle'] = $ptStyle;
  180. $connection = Yii::$app->db;
  181. $transaction = $connection->beginTransaction();
  182. try {
  183. $mobile = $data['mobile'] ?? 0;
  184. if (stringUtil::isMobile($mobile) == false) {
  185. util::fail('请填写正确手机号');
  186. }
  187. $adminInfo = ['name' => $mobile, 'mobile' => $mobile];
  188. $fromApp = dict::getDict('userSourceGetId', 'app', 'id');
  189. $admin = AdminClass::replaceAdmin($adminInfo, $fromApp);
  190. $adminId = $admin['id'] ?? 0;
  191. $data['adminId'] = $adminId;
  192. \bizHd\shop\classes\ShopClass::addMainShop($data, $this->shop, $this->sj);
  193. $transaction->commit();
  194. util::complete();
  195. } catch (\Exception $exception) {
  196. $transaction->rollBack();
  197. util::fail();
  198. }
  199. }
  200. //切换门店 lqh 2021.1.31
  201. public function actionToggleShop()
  202. {
  203. $adminId = $this->adminId;
  204. $mainId = $this->mainId;
  205. //多处要同步修改,关键词 no_allow_toggle_shop
  206. if (getenv('YII_ENV') == 'production') {
  207. //安海恋善不允许切换门店
  208. if (in_array($mainId, [44759, 56314, 56315, 56452])) {
  209. if (in_array($adminId, [54630, 54723])) {
  210. util::fail('专用账号,不允许切换门店');
  211. }
  212. }
  213. //惠雅南城不允许切换门店
  214. if ($mainId == 52 && $adminId == 3539) {
  215. util::fail('收银专用账号,不允许切换门店');
  216. }
  217. //惠雅莞城不允许切换门店
  218. if ($mainId == 1459 && $adminId == 2812) {
  219. util::fail('收银专用账号,不允许切换门店');
  220. }
  221. //淘花里中山店
  222. if ($mainId == 16948 && $adminId == 17908) {
  223. util::fail('收银专用账号,不允许切换门店');
  224. }
  225. //淘花里小榄店
  226. if ($mainId == 72057 && $adminId == 69792) {
  227. util::fail('收银专用账号,不允许切换门店');
  228. }
  229. }
  230. $shopAdmin = $this->shopAdmin;
  231. $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($shopAdmin);
  232. if ($switchShop == 0) {
  233. util::fail('不能切换门店');
  234. }
  235. $newShopId = Yii::$app->request->post('shopId', 0);
  236. $deviceId = Yii::$app->request->post('deviceId', '');
  237. $newShop = ShopClass::getById($newShopId, true);
  238. if (empty($newShop)) {
  239. util::fail('没有找到门店30');
  240. }
  241. $res = \bizHd\admin\classes\AdminClass::toggleShop($this->admin, $newShop, $this->sjId, $this->shopAdmin);
  242. if ($deviceId != '') {
  243. //设备登录状态更新
  244. $oldDevice = \bizHd\device\classes\HdDeviceClass::getByCondition(['shopId' => $this->shopId, 'deviceId' => $deviceId], true);
  245. if ($oldDevice) {
  246. $oldDevice->status = 0;
  247. $oldDevice->save();
  248. }
  249. $newLoginDevice = \bizHd\device\classes\HdDeviceClass::getByCondition(['shopId' => $newShopId, 'deviceId' => $deviceId], true);
  250. if ($newLoginDevice) {
  251. $newLoginDevice->status = 1;
  252. $newLoginDevice->save();
  253. }
  254. }
  255. util::success($res);
  256. }
  257. //网页端使用,下载微信和支付宝收款码 ssh 20250821
  258. public function actionGatheringCode()
  259. {
  260. $id = Yii::$app->request->get('id', 0);
  261. $shop = ShopService::getById($id, true);
  262. if (empty($shop)) {
  263. util::fail('没有找到门店31');
  264. }
  265. ShopClass::valid($shop->attributes, $this->sjId);
  266. $imgUrl = ShopClass::generateGatheringCode($this->sjId, $id);
  267. $shopName = $shop->shopName ?? '';
  268. $file = fopen($imgUrl, "rb");
  269. Header("Content-type: application/octet-stream ");
  270. Header("Accept-Ranges: bytes ");
  271. Header("Content-Disposition: attachment;filename={$shopName}收款码.jpg");
  272. $contents = "";
  273. while (!feof($file)) {
  274. $contents .= fread($file, 8192);
  275. }
  276. echo $contents;
  277. fclose($file);
  278. }
  279. //小程序端使用,下载收款码 ssh 20250821
  280. public function actionMiniGatheringCode()
  281. {
  282. $shop = $this->shop;
  283. $shopId = $shop->id;
  284. $imgUrl = ShopClass::generateGatheringCode($this->sjId, $shopId);
  285. util::success(['imgUrl' => $imgUrl]);
  286. }
  287. //获取二维码
  288. public function actionGetGatheringCodeUrl()
  289. {
  290. $id = Yii::$app->request->get('id', 0);
  291. $shop = ShopService::getById($id, true);
  292. if (empty($shop)) {
  293. util::fail('没有找到门店32');
  294. }
  295. ShopClass::valid($shop->attributes, $this->sjId);
  296. $imgUrl = Yii::$app->params['hdHost'] . '/auth/gathering-img-url?id=' . $id;
  297. util::success(['url' => $imgUrl]);
  298. }
  299. public function actionGatheringImgUrl()
  300. {
  301. $id = Yii::$app->request->get('id', 0);
  302. $shop = ShopService::getById($id, true);
  303. if (empty($shop)) {
  304. util::fail('没有找到门店33');
  305. }
  306. $sjId = $shop->sjId;
  307. $imgUrl = ShopClass::generateGatheringCode($sjId, $id);
  308. $fileResource = file_get_contents($imgUrl);
  309. header('Content-type: image/jpeg');
  310. echo $fileResource;
  311. }
  312. //获取小程序的收款码 ssh
  313. public function actionGatheringMiniCode()
  314. {
  315. $id = Yii::$app->request->get('id', 0);
  316. $extend = MerchantExtendService::getBySjId($this->sjId);
  317. if ($extend['miniAuth'] == 0) {
  318. util::fail('您的小程序还没有授权');
  319. }
  320. $shop = ShopService::getById($id);
  321. ShopService::valid($shop, $this->sjId);
  322. $applyMemberCode = wxUtil::generateGatheringMiniCode($this->sj->attributes, $id);
  323. $file = dirUtil::getImgDir() . $applyMemberCode;
  324. if (file_exists($file) == false) {
  325. util::fail('没有找到注册会员码');
  326. }
  327. $fileName = "门店({$id})小程序收款码.jpg";
  328. $contentType = 'image/jpeg';
  329. header("Cache-control: private");
  330. header("Content-type: $contentType"); //设置要下载的文件类型
  331. header("Content-Length:" . filesize($file)); //设置要下载文件的文件大小
  332. header("Content-Disposition: attachment; filename=" . urldecode($fileName)); //设置要下载文件的文件名
  333. readfile($file);
  334. }
  335. //下载会员注册码 ssh 2020.2.29
  336. public function actionApplyMemberCode()
  337. {
  338. $id = Yii::$app->request->get('id', 0);
  339. $extend = MerchantExtendService::getBySjId($this->sjId);
  340. if ($extend['miniAuth'] == 0) {
  341. util::fail('您的小程序还没有授权');
  342. }
  343. $shop = ShopService::getById($id);
  344. ShopService::valid($shop, $this->sjId);
  345. $applyMemberCode = wxUtil::generateMemberCode($this->sj->attributes, $id);
  346. $file = dirUtil::getImgDir() . $applyMemberCode;
  347. if (file_exists($file) == false) {
  348. util::fail('没有找到注册会员码');
  349. }
  350. $fileName = "注册会员码{$id}.jpg";
  351. $contentType = 'image/jpeg';
  352. header("Cache-control: private");
  353. header("Content-type: $contentType"); //设置要下载的文件类型
  354. header("Content-Length:" . filesize($file)); //设置要下载文件的文件大小
  355. header("Content-Disposition: attachment; filename=" . urldecode($fileName)); //设置要下载文件的文件名
  356. readfile($file);
  357. }
  358. //删除门店 ssh 2020.3.1
  359. public function actionDelete()
  360. {
  361. util::fail('禁止操作');
  362. $id = Yii::$app->request->get('id', 0);
  363. util::fail('功能开发中');
  364. $shop = ShopService::getById($id);
  365. ShopService::valid($shop, $this->sjId);
  366. ShopService::deleteShop($shop);
  367. util::complete();
  368. }
  369. //获取门店详情 ssh 2021.4.23
  370. public function actionDetail()
  371. {
  372. $shopId = Yii::$app->request->get('shopId');
  373. if (empty($shopId)) {
  374. $shopId = $this->shopId;
  375. }
  376. $shop = ShopClass::getShopInfo($shopId);
  377. $shop['hasMap'] = dict::getDict('hasMap'); //添加 hasMap 属性(字典中的 hasMap)
  378. util::success(['info' => $shop]);
  379. }
  380. //提现信息更新 ssh 2021.3.23
  381. public function actionCashUpdate()
  382. {
  383. $get = Yii::$app->request->get();
  384. $cashAccount = $get['cashAccount'] ?? '';
  385. $cashName = $get['cashName'] ?? '';
  386. $cashBank = $get['cashBank'] ?? '';
  387. if (empty($cashName)) {
  388. util::fail('请填写姓名');
  389. }
  390. if (empty($cashAccount)) {
  391. util::fail('请填写银行卡号');
  392. }
  393. if (empty($cashBank)) {
  394. util::fail('请输入开户行');
  395. }
  396. $shopAdmin = $this->shopAdmin;
  397. $shopId = $shopAdmin->shopId ?? 0;
  398. if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
  399. util::fail('超管才能操作');
  400. }
  401. ShopClass::updateById($shopId, ['cashAccount' => $cashAccount, 'cashName' => $cashName, 'cashBank' => $cashBank]);
  402. $shop = $this->shop;
  403. $sjName = $shop->merchantName ?? '';
  404. $shopName = $shop->shopName ?? '';
  405. //noticeUtil::push("{$sjName}-{$shopName} 修改提现账号,{$cashName} {$cashAccount} {$cashBank}", '15280215347');
  406. util::complete();
  407. }
  408. //获取所有门店lqh 2021.1.31
  409. public function actionAll()
  410. {
  411. $res = [];
  412. $shopAdmin = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
  413. if (isset($shopAdmin['super']) && $shopAdmin['super'] == 1) {
  414. $res = ShopClass::getAllShop($this->sjId);
  415. }
  416. util::success($res);
  417. }
  418. //获取采购时的支付方式 ssh 20211004
  419. public function actionGetCgPayWay()
  420. {
  421. $get = Yii::$app->request->get();
  422. $id = $get['id'] ?? 0;
  423. $cg = PurchaseClass::getById($id, true);
  424. PurchaseClass::valid($cg, $this->shopId);
  425. $customId = $cg->customId ?? 0;
  426. $custom = CustomClass::getById($customId);
  427. $hasDebtPay = $custom['debt'] ?? 0;
  428. //预订单不能欠款
  429. if ($cg->book == 1) {
  430. $hasDebtPay = 0;
  431. }
  432. $current = time();
  433. $cgDeadTime = strtotime($cg->deadline);
  434. //让客户在失效前$aheadTime秒要支付,这样回调通知时订单才不会过期状态
  435. $aheadTime = dict::getDict('order_online_pay_has_ahead_time');
  436. $count = $cgDeadTime - $current - $aheadTime;
  437. $data = [];
  438. $data['balance'] = $this->shop->balance ?? 0;
  439. $data['count'] = $count;
  440. $data['hasDebtPay'] = $hasDebtPay;
  441. util::success($data);
  442. }
  443. //地区 ssh 20220606
  444. public function actionRegion()
  445. {
  446. $regionTree = RegionService::tree();
  447. util::success(['region' => $regionTree]);
  448. }
  449. //散客门店详情 ssh 20211007
  450. public function actionKjCustom()
  451. {
  452. $defaultCustomId = $this->shop->defaultCustomId ?? 0;
  453. $custom = [];
  454. if (!empty($defaultCustomId)) {
  455. $custom = HdCustomClass::getById($defaultCustomId);
  456. $avatar = $custom['avatar'] ?? '';
  457. $custom['avatar'] = imgUtil::groupImg($avatar) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
  458. }
  459. util::success(['custom' => $custom]);
  460. }
  461. //散客门店设置
  462. public function actionKjCustomSet()
  463. {
  464. $id = Yii::$app->request->get('id', 0);
  465. $custom = HdCustomClass::getById($id, true);
  466. if (empty($custom)) {
  467. util::fail('没有找到客户');
  468. }
  469. if ($custom->shopId != $this->shopId) {
  470. util::fail('客户不属于当前门店');
  471. }
  472. $shop = $this->shop;
  473. $shop->defaultCustomId = $id;
  474. $shop->save();
  475. util::complete('修改成功');
  476. }
  477. public function actionUpdateShopAvatar()
  478. {
  479. $data = Yii::$app->request->post();
  480. $id = isset($data['id']) ? $data['id'] : 0;
  481. $shop = ShopClass::getById($id, true, 'id, sjId, avatar');
  482. ShopService::valid($shop, $this->sjId);
  483. if (isset($data['avatar']) && $data['avatar'] != '') {
  484. $shop->avatar = $data['avatar'];
  485. $re = $shop->save();
  486. if ($re) {
  487. \bizGhs\custom\classes\CustomClass::updateByCondition(['shopId' => $id], [
  488. 'avatar' => $data['avatar']
  489. ]);
  490. util::complete('头像修改完成');
  491. }
  492. util::fail('头像修改失败');
  493. }
  494. util::fail('头像参数出错');
  495. }
  496. //获取充值设置
  497. public function actionGetRechargeSetting()
  498. {
  499. $shopId = $this->shop->id;
  500. $shop = ShopClass::getById($shopId, false, 'rechargeWeal');
  501. $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], false, false, 'reachVip');
  502. $return = [
  503. 'rechargeRule' => $shop['rechargeWeal'] == 3 ? 2 : $shop['rechargeWeal'],
  504. 'isVipMember' => $shopExt['reachVip'] > 0 ? 1 : 0,
  505. 'vipAmount' => $shopExt['reachVip'],
  506. 'hbPayable' => $shop['rechargeWeal'] == 2 ? 1 : 0,
  507. ];
  508. util::success($return);
  509. }
  510. //充值设置
  511. public function actionSaveRechargeSetting()
  512. {
  513. $data = Yii::$app->request->post();
  514. $rechargeWeal = intval($data['rechargeRule']);
  515. $isVipMember = intval($data['isVipMember']);
  516. if ($isVipMember == 1 && $data['vipAmount'] >= 0.01) {
  517. $reachVip = floatval($data['vipAmount']);
  518. } else {
  519. $reachVip = 0;
  520. }
  521. $hbPayable = intval($data['hbPayable']);
  522. if ($rechargeWeal == 2 && $hbPayable == 0) {
  523. $rechargeWeal = 3;
  524. }
  525. $shopAdmin = $this->shopAdmin;
  526. if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
  527. util::fail('超管才能操作');
  528. }
  529. $shopId = $this->shop->id;
  530. ShopClass::updateById($shopId, ['rechargeWeal' => $rechargeWeal]);
  531. ShopExtClass::updateByCondition(['shopId' => $shopId], ['reachVip' => $reachVip]);
  532. util::complete('充值设置成功');
  533. }
  534. }