ShopController.php 21 KB

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