UserController.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: leo
  5. * Date: 2018/2/24
  6. * Time: 下午12:48
  7. */
  8. namespace frontendApi\modules\v1\controllers;
  9. use common\helpers\Cache;
  10. use common\helpers\Form;
  11. use common\helpers\user\Info;
  12. use common\models\Config;
  13. use common\models\DeclarationLevel;
  14. use common\models\DeclarationPackage;
  15. use common\models\DecOrder;
  16. use common\models\forms\ApproachDeclarationLoopForm;
  17. use common\models\forms\DeclarationForm;
  18. use common\models\forms\DeclarationLoopForm;
  19. use common\models\forms\UploadForm;
  20. use common\models\forms\UserBindForm;
  21. use common\models\forms\UserForm;
  22. use common\models\OpenBank;
  23. use common\models\ReceiveAddress;
  24. use common\models\Region;
  25. use common\models\ShopGoods;
  26. use common\models\UpgradeType;
  27. use common\models\User;
  28. use common\models\UserBind;
  29. use common\models\UserInfo;
  30. use common\models\UserNetwork;
  31. use common\models\forms\DeclarationUpgradeForm;
  32. use yii\db\Exception;
  33. use yii\web\UploadedFile;
  34. class UserController extends BaseController {
  35. public $modelClass = UserInfo::class;
  36. /**
  37. * 会员资料
  38. * @return mixed
  39. * @throws \yii\web\HttpException
  40. */
  41. public function actionIndex() {
  42. $allNation = \Yii::$app->params['nation'];
  43. $allOpenBank = OpenBank::findAllAsArray('STATUS=1');
  44. $data['allNation'] = $allNation;
  45. $data['allOpenBank'] = $allOpenBank;
  46. $data['userInfo'] = User::getEnCodeInfo(\Yii::$app->user->id);
  47. $data['userInfo']['NATION'] = $data['userInfo']['NATION_ID'];
  48. return static::notice($data);
  49. }
  50. /**
  51. * 编辑会员资料
  52. * @return mixed
  53. * @throws \yii\web\HttpException
  54. */
  55. public function actionEdit() {
  56. if(\Yii::$app->request->isPost){
  57. $form = new UserForm();
  58. $post = \Yii::$app->request->post();
  59. $form->scenario = 'modifyProfile';
  60. if($form->load($post, '') && $result = $form->modifyProfile()){
  61. return static::notice('Personal data modified successfully');//个人资料修改成功
  62. } else {
  63. return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
  64. }
  65. }
  66. return static::notice('非法访问', 400);
  67. }
  68. /**
  69. * 修改登录密码
  70. */
  71. public function actionPassword(){
  72. if(\Yii::$app->request->isPost){
  73. $form = new UserForm();
  74. $form->scenario = 'modifyPassword';
  75. $post = \Yii::$app->request->post();
  76. if($form->load($post, '') && $result = $form->modifyPassword()){
  77. return static::notice('Password modified successfully');//密码修改成功
  78. } else {
  79. return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
  80. }
  81. }
  82. return static::notice('非法访问', 400);
  83. }
  84. /**
  85. * 修改支付密码
  86. */
  87. public function actionPayPassword(){
  88. if(\Yii::$app->request->isPost){
  89. $form = new UserForm();
  90. $form->scenario = 'modifyPasswordPay';
  91. $post = \Yii::$app->request->post();
  92. $form->userId = \Yii::$app->user->id;
  93. if($form->load($post, '') && $result = $form->modifyPasswordPay()){
  94. return static::notice('支付密码修改成功');
  95. } else {
  96. return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
  97. }
  98. }
  99. return static::notice('非法访问', 400);
  100. }
  101. /**
  102. * 直推会员列表
  103. * @return mixed
  104. * @throws \yii\web\HttpException
  105. */
  106. public function actionRecUser() {
  107. $allData = UserInfo::lists('AND REC_UID=:REC_UID', [':REC_UID' => \Yii::$app->user->id], ['useSlaves' => true, 'select'=>'USER_ID,CREATED_AT']);
  108. foreach ($allData['list'] as $key => $data) {
  109. $userBaseInfo = User::getEnCodeInfo($data['USER_ID']);
  110. $userBaseInfo['NATION'] = \Yii::$app->params['nation'][$userBaseInfo['NATION']]['name'] ?? '';
  111. $allData['list'][$key]['BASE_INFO'] = $userBaseInfo;
  112. }
  113. return static::notice($allData);
  114. }
  115. /**
  116. * 上传身份证
  117. * @return mixed
  118. * @throws \yii\base\Exception
  119. * @throws \yii\web\HttpException
  120. */
  121. public function actionIdCard() {
  122. if (\Yii::$app->request->isPost) {
  123. $formModel = new UploadForm();
  124. $formModel->scenario = 'idCardFront';
  125. $formModel->file = UploadedFile::getInstanceByName('file');
  126. //$formModel->token = \Yii::$app->request->post('uploadToken');
  127. $formModel->token = \Yii::$app->request->request('uploadToken');
  128. if ($formModel->file && $formModel->upload()) {
  129. return static::notice('上传成功');
  130. } else {
  131. return static::notice(Form::formatErrorsForApi($formModel->getErrors()), 400);
  132. }
  133. }
  134. // 查看该用户是否已经上传过身份证
  135. $oneData = User::find()->select('ID_IMAGE')->where('ID=:ID', [':ID' => \Yii::$app->user->id])->asArray()->one();
  136. if ($oneData['ID_IMAGE']) {
  137. return static::notice($oneData);
  138. } else {
  139. $token = Cache::setUploadToken();
  140. return static::notice($token);
  141. }
  142. }
  143. /**
  144. * 点位绑定
  145. * @return mixed
  146. * @throws \yii\base\Exception
  147. * @throws \yii\web\HttpException
  148. */
  149. public function actionBind() {
  150. $userBind = UserBind::findOneAsArray('USER_ID=:USER_ID AND IS_DEL=0', [':USER_ID' => \Yii::$app->user->id]);
  151. $allData['list']=UserBind::findAllAsArray('MAIN_UID=:MAIN_UID AND IS_DEL=0', [':MAIN_UID' => $userBind['MAIN_UID']], 'ID,USER_ID,MAIN_UID,CREATED_AT,UPDATED_AT');
  152. foreach ($allData['list'] as $key => $value) {
  153. $baseInfo = Info::baseInfoZh($value['USER_ID']);
  154. if ($baseInfo['STATUS'] != 1) {
  155. unset($allData['list'][$key]);
  156. continue;
  157. }
  158. $allData['list'][$key]['USER_NAME'] = $baseInfo['USER_NAME'];
  159. $allData['list'][$key]['REAL_NAME'] = $baseInfo['REAL_NAME'];
  160. $allData['list'][$key]['BANK_PROVINCE_NAME'] = $baseInfo['BANK_PROVINCE_NAME'];
  161. $allData['list'][$key]['BANK_CITY_NAME'] = $baseInfo['BANK_CITY_NAME'];
  162. $allData['list'][$key]['BANK_COUNTY_NAME'] = $baseInfo['BANK_COUNTY_NAME'];
  163. $allData['list'][$key]['OPEN_BANK_NAME'] = $baseInfo['OPEN_BANK_NAME'];
  164. $allData['list'][$key]['BANK_NO'] = $baseInfo['BANK_NO'];
  165. $allData['list'][$key]['MAIN_USER_NAME'] =Info::getUserNameByUserId($value['MAIN_UID']);
  166. }
  167. $allData['list'] = array_values($allData['list']);
  168. return static::notice($allData);
  169. }
  170. /**
  171. * 编辑点位绑定
  172. * @return mixed
  173. * @throws \yii\web\HttpException
  174. */
  175. public function actionBindEdit(){
  176. $id = \Yii::$app->request->get('id');
  177. if(\Yii::$app->request->isPost) {
  178. return parent::edit(UserBindForm::class, '修改主点位成功', 'frontEdit', ['frontEdit'], null, function($form, $result){
  179. //log
  180. });
  181. }
  182. // 获得当前会员的用户名等信息
  183. $userBind = UserBind::findOneAsArray('ID=:ID AND IS_DEL=0', [':ID' => $id]);
  184. $userBinds = UserBind::findAllAsArray('MAIN_UID=:MAIN_UID AND IS_DEL=0',[':MAIN_UID'=>$userBind['MAIN_UID']], 'ID,USER_ID,MAIN_UID,CREATED_AT,UPDATED_AT');
  185. foreach($userBinds as $key=>$value){
  186. $status = Info::getStatusByUserId($value['USER_ID']);
  187. if ($status != 1) {
  188. unset($userBinds[$key]);
  189. continue;
  190. }
  191. $userBinds[$key]['USER_NAME'] = Info::getUserNameByUserId($value['USER_ID']);
  192. }
  193. $userBinds = array_values($userBinds);
  194. return static::notice(['userBinds' => $userBinds,'mainUid'=>$userBind['MAIN_UID']]);
  195. }
  196. // 会员升级,通过会员的编号,获取会员信息
  197. public function actionUpgradeInfo() {
  198. $isSwitchUpgrade = Config::find()
  199. ->where("CONFIG_NAME='isOpenUpgrade'")
  200. ->asArray()
  201. ->one();
  202. $isOpen = !empty($isSwitchUpgrade) && isset($isSwitchUpgrade['VALUE']) ? $isSwitchUpgrade['VALUE'] : 0;
  203. if ($isOpen < 1) {
  204. return static::notice('The function is not available',400); // 功能暂未开放
  205. }
  206. $userNumber = \Yii::$app->request->request('userName');
  207. $baseInfo = Info::baseInfoZhByUserName($userNumber);
  208. if ($baseInfo['STATUS'] != 1) {
  209. return static::notice('Inactive user. Please contact customer service.',400);// 非激活用户,请联系客服
  210. }
  211. // 1. 如果是最高级别,则只显示用户基本信息
  212. // 2. 如果不是最高级别,如果用户累计报单数据是0, 或者用户累计报单业绩不符合级别信息,则提示 请联系客服核对业绩
  213. $userId = $baseInfo['ID'];
  214. $userDecId = $baseInfo['DEC_LV'];// 用户当前的级别
  215. // 获取系统中的DEC 报单级别配置
  216. $decConfig = Cache::getDecLevelConfig();
  217. $userDecInfo = $decConfig[$userDecId]; // 会员的级别具体信息
  218. $maxPerfInfo = DeclarationLevel::getMaxDecPref();
  219. $maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别ID
  220. $observe = Config::getConfigByType('observe'); // 获取观察期配置信息
  221. $observeLimit = $observe['observePeriodLimit']['value']; // 月份限制
  222. $isObserve = User::checkIsObserve($baseInfo['CREATED_AT'], $observeLimit); // 判断用户是否再观察期中
  223. // 如果用户已经是最高级别,则只展示用户信息
  224. $isMax = false;
  225. if ($maxDecId == $userDecId) {
  226. $isMax = true;
  227. }
  228. // 如果用户已经是最高级别,则只展示用户信息
  229. $userInfo = [
  230. 'DEC_NAME' => $baseInfo['DEC_LV_NAME'], // 用户级别中文
  231. 'DEC_ID' => $userDecId, // 用户级别id
  232. 'REAL_NAME' => $baseInfo['REAL_NAME'], // 真实姓名
  233. 'ADD_AT' => date('Y-m-d', $baseInfo['CREATED_AT']), // 加入时间
  234. 'IS_OBSERVE' => $isObserve, // 是否是观察期 true为是观察期
  235. 'IS_MAX' => $isMax, // 是否已是最大级别 最大级别不需要判断报单总PV是多少 只展示基本信息
  236. ];
  237. // 如果是最高级别了,则无需升级
  238. if ($isMax) {
  239. return static::notice(['baseInfo' => $userInfo]);
  240. }
  241. $levelPerf = $userDecInfo['PERF'];// 用户当前级别对应的业绩值
  242. if (!$isMax) {
  243. $userDecPvSum = User::sumDevPvByUserId($userId); // 用户所有报单PV总和
  244. // // 如果总和小于级别业绩 去掉这校验直接补比如3000-980的差值
  245. // if ($userDecPvSum < $levelPerf) {
  246. // return static::notice('请联系客服人员核对业绩',400);
  247. // }
  248. // 下一级业绩
  249. $nextLevelPerf = DeclarationLevel::getNextDecPref($levelPerf)['PERF'];
  250. // 如果总和超过了下一级业绩
  251. if ($userDecPvSum >= $nextLevelPerf) {
  252. return static::notice('Please contact customer service to check performance.',400);// 请联系客服人员核对业绩
  253. }
  254. $type = $isObserve ? 1 : 2;
  255. $userInfo['UPGRADE_FUNC'] = $isObserve ? 'filling up of a deficit' : 'full payment';// 升级方式
  256. $upgradeType = UpgradeType::getOneByType($type);
  257. // 如果用户不是最大级别,则需要获取是否观察期,算出PV是否有问题,应该补多少,
  258. $userInfo['UPGRADE_TYPE'] = $upgradeType;
  259. $userInfo['NOW_PERF'] = $userDecPvSum;
  260. $userInfo['NEXT_PERF'] = $nextLevelPerf;
  261. // 用户可选择的级别列表
  262. $userInfo['LEVEL_LIST'] = DeclarationLevel::getNextAll($levelPerf);// 用户可选择的级别列表
  263. // 循环列表,补充升级所需要的补差
  264. foreach ($userInfo['LEVEL_LIST'] as &$v) {
  265. $v['REPAIR_PV'] = $isObserve ? $v['PERF'] - $userInfo['NOW_PERF'] : $v['PERF'];
  266. }
  267. }
  268. return static::notice(['baseInfo' => $userInfo]);
  269. }
  270. // 会员升级管理
  271. public function actionUpgrade() {
  272. $isSwitchUpgrade = Config::find()
  273. ->where("CONFIG_NAME='isOpenUpgrade'")
  274. ->asArray()
  275. ->one();
  276. $isOpen = !empty($isSwitchUpgrade) && isset($isSwitchUpgrade['VALUE']) ? $isSwitchUpgrade['VALUE'] : 0;
  277. if ($isOpen < 1) {
  278. return static::notice('功能暂未开放',400);
  279. }
  280. // 开始升级
  281. if (\Yii::$app->request->isPost) {
  282. $formModel = new DeclarationUpgradeForm();
  283. $post = \Yii::$app->request->post();
  284. $post['type'] = DeclarationForm::TYPE_ZC;
  285. $allData['data'][] = $post;
  286. if ($formModel->load($post, '') && $formModel->add($post)) {
  287. return static::notice('Upgrade declaration succeeded');//升级报单成功
  288. } else {
  289. return static::notice(Form::formatErrorsForApi($formModel->getErrors()),400);
  290. }
  291. }
  292. //所有报单套餐
  293. $allDecPackage = DeclarationPackage::getAllData();
  294. $decLevels = Cache::getDecLevelConfig();
  295. foreach ($allDecPackage as $k=>$v){
  296. $levelName = $decLevels[$v['LEVEL_ID']]['LEVEL_NAME'] ?? '';
  297. $allDecPackage[$k]['LEVEL_NAME'] = $levelName;
  298. }
  299. //所有自选商品
  300. $isDecReg = Cache::getSystemConfig()['isDecReg']['VALUE'];
  301. $isDec = User::getEnCodeInfo(\Yii::$app->user->id)['IS_DEC'];
  302. $isStudio = User::getEnCodeInfo(\Yii::$app->user->id)['IS_STUDIO'];
  303. $decUserName = User::getEnCodeInfo(\Yii::$app->user->id)['USER_NAME'];
  304. $query_condition= " AND (1<>1";
  305. if(!$isDecReg || ($isDecReg && $isDec==1)){
  306. $query_condition = " AND (FIND_IN_SET(1,GIFT_TYPE)>0";
  307. }
  308. if($isStudio==1){
  309. $query_condition.= " OR FIND_IN_SET(3,GIFT_TYPE)>0";
  310. }
  311. $query_condition.= ")";
  312. $allGoods = ShopGoods::find()->where("STATUS=1 ".$query_condition)->orderBy('SORT ASC')->asArray()->all();
  313. return static::notice(['allDecPackage' => $allDecPackage,'allGoods' => $allGoods,'decUserName'=>$decUserName]);
  314. }
  315. /**
  316. * 报单管理
  317. */
  318. public function actionDec() {
  319. // 生成随机码 , 初始化redis
  320. $userName = Info::generateWebUserName('NG',9);
  321. $redis = \Yii::$app->redis;
  322. $post = \Yii::$app->request->post();
  323. if (\Yii::$app->request->isPost) {
  324. // 根据支付方式区分逻辑
  325. $payMethod = \Yii::$app->request->post('payType', '');
  326. if ($payMethod === 'pay_stack') {
  327. $formModel = new ApproachDeclarationLoopForm();
  328. } else {
  329. unset($post['payType']);
  330. $formModel = new DeclarationLoopForm();
  331. }
  332. $formModel->scenario = 'userDec';
  333. $post['province'] = $post['province'] ? :1;
  334. $post['city'] = $post['city'] ? :1;
  335. $post['county'] = $post['county'] ? :1;
  336. $post['conUserName'] = trim($post['conUserName']);
  337. $post['recUserName'] = trim($post['recUserName']);
  338. $post['cityName'] = trim($post['cityName']);
  339. $post['lgaName'] = trim($post['lgaName']);
  340. // 针对于会员编号的判断
  341. $insertUserName = strtoupper($post['insertUserName']);
  342. $getRedisUserName = $redis->get('key_' . $insertUserName);
  343. if (!$getRedisUserName){
  344. return static::notice('Membership number expired',400);//会员编号过期
  345. }
  346. if ($insertUserName != $getRedisUserName){
  347. return static::notice('Member number does not conform to',400);//会员编号不符合
  348. }
  349. $post['insertUserName'] = $insertUserName;
  350. $post['type'] = DeclarationForm::TYPE_ZC;
  351. $allData['data'][] = $post;
  352. if ($formModel->load($allData, '') && $result = $formModel->add()) {
  353. return static::notice($result);//报单成功
  354. } else {
  355. return static::notice(Form::formatErrorsForApi($formModel->getErrors()),400);
  356. }
  357. }
  358. //所有报单套餐
  359. $allDecPackage = DeclarationPackage::getAllData();
  360. $decLevels = Cache::getDecLevelConfig();
  361. foreach ($allDecPackage as $k=>$v){
  362. $levelName = $decLevels[$v['LEVEL_ID']]['LEVEL_NAME'] ?? '';
  363. $allDecPackage[$k]['LEVEL_NAME'] = $levelName;
  364. }
  365. //所有自选商品
  366. $isDecReg = Cache::getSystemConfig()['isDecReg']['VALUE'];
  367. $isDec = User::getEnCodeInfo(\Yii::$app->user->id)['IS_DEC'];
  368. $isStudio = User::getEnCodeInfo(\Yii::$app->user->id)['IS_STUDIO'];
  369. $query_condition= " AND (1<>1";
  370. if(!$isDecReg || ($isDecReg && $isDec==1)){
  371. $query_condition = " AND (FIND_IN_SET(1,GIFT_TYPE)>0";
  372. }
  373. if($isStudio==1){
  374. $query_condition.= " OR FIND_IN_SET(3,GIFT_TYPE)>0";
  375. }
  376. $query_condition.= ")";
  377. // 只查询普通商品
  378. $allGoods = ShopGoods::find()->where("STATUS=1 AND CATEGORY_TYPE=1".$query_condition)->orderBy('SORT ASC')->asArray()->all();
  379. //$allGoods = ShopGoods::findAllAsArray('STATUS=1');
  380. // 所有开户行
  381. $allOpenBank = OpenBank::find()->where('STATUS=1')->orderBy('LIST_ORDER ASC')->asArray()->all();
  382. if (!$userName) {
  383. return static::notice('Failed to generate member number', 400);//会员编号生成失败
  384. }
  385. //随机码保存在redis中方便进行比对
  386. $redis->setex('key_'.$userName , 3600 , $userName);
  387. return static::notice([
  388. 'allDecPackage' => $allDecPackage,
  389. 'allGoods' => $allGoods,
  390. 'allOpenBank' => $allOpenBank,
  391. 'userName' => $userName,
  392. 'payList' => ShopGoods::payTypes(),
  393. 'sellType' => ShopGoods::CATEGORY_TYPE,
  394. 'categoryType' => ShopGoods::CATEGORY_TYPE[0]['id'],
  395. ]);
  396. }
  397. /**
  398. * 报单级别套餐
  399. */
  400. public function actionDecPackage() {
  401. $decLv = \Yii::$app->request->get('id');
  402. //所有报单级别套餐
  403. $allDecPackage = DeclarationPackage::getPackageFromLevelId($decLv);
  404. return static::notice(['allDecPackage' => $allDecPackage]);
  405. }
  406. /**
  407. * 会员信息查询
  408. * @return mixed
  409. * @throws \yii\web\HttpException
  410. */
  411. public function actionFullInfo()
  412. {
  413. $userName = \Yii::$app->request->get('userName');
  414. $userId = Info::getUserIdByUserName($userName);
  415. $userInfo['REAL_NAME'] = '';
  416. $user = User::findOneAsArray('ID=:ID', [':ID' => $userId], 'REAL_NAME');
  417. if($user){
  418. $userInfo['REAL_NAME'] = $user['REAL_NAME'];
  419. $allChildUser = UserNetwork::getFirstFloorChildren($userId);
  420. $isLocation = [1 => 'Left-', 2 => 'Right-'];
  421. if($allChildUser) {
  422. foreach ($allChildUser as $child) {
  423. if ($child['RELATIVE_LOCATION']<'3'){
  424. $isLocation[$child['RELATIVE_LOCATION']].= 'Full';
  425. }
  426. }
  427. }
  428. $userInfo['isLocation'] = '('.implode(',',$isLocation).')';
  429. return static::notice($userInfo);
  430. }else{
  431. return static::notice('Member number does not exist', 400);//会员编号不存在
  432. }
  433. }
  434. /**
  435. * 复消会员信息查询
  436. * @return mixed
  437. * @throws \yii\web\HttpException
  438. */
  439. public function actionUserBaseInfo()
  440. {
  441. $userName = \Yii::$app->request->get('userName');
  442. $userId = Info::getUserIdByUserName($userName);
  443. if($userId){
  444. $allAddress = ReceiveAddress::findAllAsArray('USER_ID=:USER_ID', [':USER_ID'=>$userId]);
  445. if($allAddress) {
  446. foreach ($allAddress as $key => $row) {
  447. $allAddress[$key]['PROVINCE_NAME'] = Region::getCnName($row['PROVINCE']);
  448. $allAddress[$key]['CITY_NAME'] = Region::getCnName($row['CITY']);
  449. $allAddress[$key]['COUNTY_NAME'] = Region::getCnName($row['COUNTY']);
  450. }
  451. }
  452. $userInfo = Info::baseInfoWithNet($userId);
  453. // $decLevelConfig = Cache::getDecLevelConfig();
  454. // $empLevelConfig = Cache::getEmpLevelConfig();
  455. $arr = [
  456. 'REAL_NAME'=>$userInfo['REAL_NAME'],
  457. // 'DEC_LEVEL_NAME' => $decLevelConfig[$userInfo['DEC_LV']]['LEVEL_NAME'],
  458. // 'EMP_LEVEL_NAME'=>$empLevelConfig[$userInfo['EMP_LV']]['LEVEL_NAME'],
  459. // 'REC_UID'=>$userInfo['REC_USER_NAME'].'('.$userInfo['REC_REAL_NAME'].')',
  460. // 'CON_UID'=>$userInfo['CON_USER_NAME'].'('.$userInfo['CON_REAL_NAME'].')',
  461. 'allAddress'=>$allAddress
  462. ];
  463. return static::notice($arr);
  464. }else{
  465. return static::notice('Repeat sales Member No. does not exist', 400);//复消会员编号不存在
  466. }
  467. }
  468. }