Zzququeu9.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. class Zzququeu9 extends Start_Controller {
  4. public function __construct(){
  5. parent::__construct();
  6. $this->load->library('session');
  7. $this->load->_model('Model_zzquque_u9','zzquque_u9');
  8. $this->load->_model("Model_logic_order","logic_order");
  9. $this->load->_model("Model_logic_u9xgsd","logic_u9xgsd");
  10. }
  11. public function _remap($arg,$arg_array)
  12. {
  13. if($arg == 'dc')//调出单
  14. {
  15. $this->_dc($arg_array);
  16. }
  17. elseif($arg == 'cg')//采购
  18. {
  19. $this->_cg($arg_array);
  20. }
  21. elseif($arg == 'xs')//销售单
  22. {
  23. $this->_xs($arg_array);
  24. }
  25. elseif($arg == 'bzch')//标准出货
  26. {
  27. $this->_bzch($arg_array);
  28. }
  29. elseif($arg == 'bzsh')//标准收货
  30. {
  31. $this->_bzsh($arg_array);
  32. }
  33. elseif($arg == 'dr')//调入单
  34. {
  35. $this->_dr($arg_array);
  36. }
  37. elseif($arg == 'xs_two')//调入单
  38. {
  39. $this->_xs_two($arg_array);
  40. }
  41. elseif($arg == 'add'){
  42. $this->_add();
  43. }
  44. else
  45. {
  46. $this->_index();
  47. }
  48. }
  49. public function _index(){
  50. $post = $this->input->post(NULL, TRUE);
  51. if(isset($post['page']))
  52. {
  53. $page = $this->input->post('page',true);
  54. $perpage = $this->input->post('perpage',true);
  55. $timetk = $this->input->post('timetk',true);//订单开始时间
  56. $timetj = $this->input->post('timetj',true);//订单结束时间
  57. $timetk = strtotime($timetk);
  58. $timetj = strtotime($timetj);
  59. $order_no = $this->input->post('order_no',true);
  60. $where='type = 10 ';
  61. if($order_no){
  62. $where .= " and order_no = '".$order_no."' ";
  63. }
  64. if($timetk && $timetj){
  65. $where .= " and create_time > ".$timetk." and create_time < ".$timetj." ";
  66. }
  67. if(empty($page))
  68. {
  69. $start = 0;
  70. $perpage = 1;
  71. }
  72. else
  73. {
  74. $start = ($page - 1)*$perpage;
  75. }
  76. $info_list = $this->zzquque_u9->find_all($where,'*','id desc',$start,$perpage);
  77. $type_list = $this->zzquque_u9->getType();
  78. $list = [];
  79. foreach($info_list as $k=>$v){
  80. $dc_no = "";
  81. if($v['dc_status'] == 0){
  82. $dc_no = "<span data-action='dc' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建调出单</span>";
  83. }elseif($v['dc_status'] == 1){
  84. $dc_no = "<span data-action='dc' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交调出单</span>";
  85. }elseif($v['dc_status'] == -1){
  86. $dc_no = "<span data-action='dc' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建调出单</span>".'<p style="color:blue"><i class="method fa fa-exclamation-circle" data-t="123"></i><p>';
  87. }elseif($v['dc_status'] == 2){
  88. $dc_no = "<span data-action='dc' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核调出单</span>";
  89. }elseif($v['dc_status'] == -2){
  90. $dc_no = "<span data-action='dc' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交调出单</span>";
  91. }elseif($v['dc_status'] == -3){
  92. $dc_no = "<span data-action='dc' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核调出单</span>";
  93. }
  94. if(!empty($v['dc_no'])){
  95. $dc_no = $v['dc_no']."<br/>".$dc_no;
  96. }
  97. $cg_no = empty($v['cg_no'])?"":$v['cg_no'];
  98. if($v['cg_status'] == 0){
  99. $cg_no .= "<span data-action='cg' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建采购单</span>";
  100. }elseif($v['cg_status'] == 1){
  101. $cg_no .= "<span data-action='cg' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交采购单</span>";
  102. }elseif($v['cg_status'] == -1){
  103. $cg_no .= "<span data-action='cg' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建采购单</span>";
  104. }elseif($v['cg_status'] == 2){
  105. $cg_no .= "<span data-action='cg' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核采购单</span>";
  106. }elseif($v['cg_status'] == -2){
  107. $cg_no .= "<span data-action='cg' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交采购单</span>";
  108. }elseif($v['cg_status'] == -3){
  109. $cg_no .= "<span data-action='cg' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核采购单</span>";
  110. }
  111. $xs_no = empty($v['xs_no'])?"":$v['xs_no'];
  112. if($v['xs_status'] == 0){
  113. $xs_no .= "<span data-action='xs' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建销售单</span>";
  114. }elseif($v['xs_status'] == 1){
  115. $xs_no .= "<span data-action='xs' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交销售单</span>";
  116. }elseif($v['xs_status'] == -1){
  117. $xs_no .= "<span data-action='xs' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建销售单</span>";
  118. }elseif($v['xs_status'] == 2){
  119. $xs_no .= "<span data-action='xs' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核销售单</span>";
  120. }elseif($v['xs_status'] == -2){
  121. $xs_no .= "<span data-action='xs' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交销售单</span>";
  122. }elseif($v['xs_status'] == -3){
  123. $xs_no .= "<span data-action='xs' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核销售单</span>";
  124. }
  125. $xs_two_no = empty($v['xs_two_no'])?"":$v['xs_two_no'];
  126. if($v['xs_two_status'] == 0){
  127. $xs_two_no .= "<span data-action='xs_two' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建销售单</span>";
  128. }elseif($v['xs_two_status'] == 1){
  129. $xs_two_no .= "<span data-action='xs_two' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交销售单</span>";
  130. }elseif($v['xs_two_status'] == -1){
  131. $xs_two_no .= "<span data-action='xs_two' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建销售单</span>";
  132. }elseif($v['xs_two_status'] == 2){
  133. $xs_two_no .= "<span data-action='xs_two' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核销售单</span>";
  134. }elseif($v['xs_two_status'] == -2){
  135. $xs_two_no .= "<span data-action='xs_two' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交销售单</span>";
  136. }elseif($v['xs_two_status'] == -3){
  137. $xs_two_no .= "<span data-action='xs_two' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核销售单</span>";
  138. }
  139. $bzch_no =empty($v['bzch_no'])?"":$v['bzch_no'];
  140. if($v['bzch_status'] == 0){
  141. $bzch_no .= "<span data-action='bzch' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建出货单</span>";
  142. }elseif($v['bzch_status'] == 1){
  143. $bzch_no .= "<span data-action='bzch' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交出货单</span>";
  144. }elseif($v['bzch_status'] == -1){
  145. $bzch_no .= "<span data-action='bzch' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建出货单</span>";
  146. }elseif($v['bzch_status'] == 2){
  147. $bzch_no .= "<span data-action='bzch' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核出货单</span>";
  148. }elseif($v['bzch_status'] == -2){
  149. $bzch_no .= "<span data-action='bzch' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交出货单</span>";
  150. }elseif($v['bzch_status'] == -3){
  151. $bzch_no .= "<span data-action='bzch' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核出货单</span>";
  152. }
  153. //$bzsh_no =empty($v['bzsh_no'])?"":$v['bzsh_no'];
  154. $dr_no = empty($v['dr_no'])?"":$v['dr_no'];
  155. if($v['dr_status'] == 0){
  156. $dr_no .= "<span data-action='dr' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建调入单</span>";
  157. }elseif($v['dr_status'] == 1){
  158. $dr_no .= "<span data-action='dr' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交调入单</span>";
  159. }elseif($v['dr_status'] == -1){
  160. $dr_no .= "<span data-action='dr' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建调入单</span>";
  161. }elseif($v['dr_status'] == 2){
  162. $dr_no .= "<span data-action='dr' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核调入单</span>";
  163. }elseif($v['dr_status'] == -2){
  164. $dr_no .= "<span data-action='dr' data-process='2' data-id='".$v['id']."' onclick='doAction(this)'>提交调入单</span>";
  165. }elseif($v['dr_status'] == -3){
  166. $dr_no .= "<span data-action='dr' data-process='3' data-id='".$v['id']."' onclick='doAction(this)'>审核调入单</span>";
  167. }
  168. $list[] = [
  169. 'id'=>$v['id'],
  170. 'order_no'=>$v['order_no'],
  171. 'type'=>isset($type_list[$v['type']])?$type_list[$v['type']]:"异常",
  172. 'dc_no'=> $dc_no,
  173. 'cg_no'=>$cg_no,
  174. 'xs_no'=>$xs_no,
  175. 'dr_no'=>$dr_no,
  176. 'xs_two_no'=>$xs_two_no,
  177. 'bzch_no'=>$bzch_no,
  178. //'bzsh_no'=>$bzsh_no,
  179. 'create_time'=>date("Y-m-d H:i:s",$v['create_time']),
  180. 'update_time'=>date("Y-m-d H:i:s",$v['update_time'])
  181. ];
  182. }
  183. $total = $this->zzquque_u9->find_count($where);
  184. $pagenum = ceil($total/$perpage);
  185. $over = $total-($start+$perpage);
  186. $rows = array('total'=>$total,'over'=>$over,'pagenum'=>$pagenum,'rows'=>($list));
  187. echo json_encode($rows);exit;
  188. }
  189. $this->_Template('zzququeu9',$this->data);
  190. }
  191. public function _dc($arg_array){
  192. $process= $arg_array[0];
  193. $id = $arg_array[1];
  194. $info = $this->zzquque_u9->read($id);
  195. if($process == 1){
  196. if(!in_array($info['dc_status'],[0,-1])){
  197. echo json_encode(array('msg'=>'当前状态不符合创建调出单的条件','success'=>false));
  198. exit;
  199. }
  200. $r = $this->logic_u9xgsd->createDc($info);
  201. if($r['code'] == 1){
  202. echo json_encode(array('msg'=>'创建调出单成功','success'=>true));
  203. exit;
  204. }else{
  205. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  206. exit;
  207. }
  208. }else if($process == 2){
  209. if(!in_array($info['dc_status'],[1,-2])){
  210. echo json_encode(array('msg'=>'当前状态不符合提交调出单的条件','success'=>false));
  211. exit;
  212. }
  213. $r = $this->logic_u9xgsd->subDc($info);
  214. if($r['code'] == 1){
  215. echo json_encode(array('msg'=>'提交调出单成功','success'=>true));
  216. exit;
  217. }else{
  218. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  219. exit;
  220. }
  221. }else if($process == 3){
  222. if(!in_array($info['dc_status'],[2,-3])){
  223. echo json_encode(array('msg'=>'当前状态不符合审核调出单的条件','success'=>false));
  224. exit;
  225. }
  226. $r = $this->logic_u9xgsd->shDc($info);
  227. if($r['code'] == 1){
  228. echo json_encode(array('msg'=>'审核调出单成功','success'=>true));
  229. exit;
  230. }else{
  231. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  232. exit;
  233. }
  234. }else{
  235. echo json_encode(array('msg'=>'当前状态不符合创建调出单的条件','success'=>false));
  236. exit;
  237. }
  238. }
  239. public function _cg($arg_array){
  240. $process= $arg_array[0];
  241. $id = $arg_array[1];
  242. $info = $this->zzquque_u9->read($id);
  243. if($process == 1){
  244. if(!in_array($info['cg_status'],[0,-1])){
  245. echo json_encode(array('msg'=>'当前状态不符合创建采购单的条件','success'=>false));
  246. exit;
  247. }
  248. $r = $this->logic_u9xgsd->createCg($info);
  249. if($r['code'] == 1){
  250. echo json_encode(array('msg'=>'创建采购单成功','success'=>true));
  251. exit;
  252. }else{
  253. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  254. exit;
  255. }
  256. }else if($process == 2){
  257. if(!in_array($info['cg_status'],[1,-2])){
  258. echo json_encode(array('msg'=>'当前状态不符合提交采购单的条件','success'=>false));
  259. exit;
  260. }
  261. $r = $this->logic_u9xgsd->subCg($info);
  262. if($r['code'] == 1){
  263. echo json_encode(array('msg'=>'提交采购单成功','success'=>true));
  264. exit;
  265. }else{
  266. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  267. exit;
  268. }
  269. }else if($process == 3){
  270. if(!in_array($info['cg_status'],[2,-3])){
  271. echo json_encode(array('msg'=>'当前状态不符合审核采购单的条件','success'=>false));
  272. exit;
  273. }
  274. $r = $this->logic_u9xgsd->shCg($info);
  275. if($r['code'] == 1){
  276. echo json_encode(array('msg'=>'审核采购单成功','success'=>true));
  277. exit;
  278. }else{
  279. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  280. exit;
  281. }
  282. }else{
  283. echo json_encode(array('msg'=>'当前状态不符合创建采购单的条件','success'=>false));
  284. exit;
  285. }
  286. }
  287. public function _xs($arg_array){
  288. $process= $arg_array[0];
  289. $id = $arg_array[1];
  290. $info = $this->zzquque_u9->read($id);
  291. if($process == 1){
  292. if(!in_array($info['xs_status'],[0,-1])){
  293. echo json_encode(array('msg'=>'当前状态不符合创建销售单的条件','success'=>false));
  294. exit;
  295. }
  296. $r = $this->logic_u9xgsd->createXs($info);
  297. if($r['code'] == 1){
  298. echo json_encode(array('msg'=>'创建销售单成功','success'=>true));
  299. exit;
  300. }else{
  301. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  302. exit;
  303. }
  304. }else if($process == 2){
  305. if(!in_array($info['xs_status'],[1,-2])){
  306. echo json_encode(array('msg'=>'当前状态不符合提交销售单的条件','success'=>false));
  307. exit;
  308. }
  309. $r = $this->logic_u9xgsd->subXs($info);
  310. if($r['code'] == 1){
  311. echo json_encode(array('msg'=>'提交销售单成功','success'=>true));
  312. exit;
  313. }else{
  314. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  315. exit;
  316. }
  317. }else if($process == 3){
  318. if(!in_array($info['xs_status'],[2,-3])){
  319. echo json_encode(array('msg'=>'当前状态不符合审核销售单的条件','success'=>false));
  320. exit;
  321. }
  322. $r = $this->logic_u9xgsd->shXs($info);
  323. if($r['code'] == 1){
  324. echo json_encode(array('msg'=>'审核销售单成功','success'=>true));
  325. exit;
  326. }else{
  327. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  328. exit;
  329. }
  330. }else{
  331. echo json_encode(array('msg'=>'当前状态不符合创建销售单的条件','success'=>false));
  332. exit;
  333. }
  334. }
  335. public function _dr($arg_array){
  336. $process= $arg_array[0];
  337. $id = $arg_array[1];
  338. $info = $this->zzquque_u9->read($id);
  339. if($process == 1){
  340. if(!in_array($info['dr_status'],[0,-1])){
  341. echo json_encode(array('msg'=>'当前状态不符合查询调入单的条件','success'=>false));
  342. exit;
  343. }
  344. $r = $this->logic_u9xgsd->createDr($info);
  345. if($r['code'] == 1){
  346. echo json_encode(array('msg'=>'查询调入单成功','success'=>true));
  347. exit;
  348. }else{
  349. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  350. exit;
  351. }
  352. }else if($process == 2){
  353. if(!in_array($info['dr_status'],[1,-2])){
  354. echo json_encode(array('msg'=>'当前状态不符合提交调入单的条件','success'=>false));
  355. exit;
  356. }
  357. $r = $this->logic_u9xgsd->subDr($info);
  358. if($r['code'] == 1){
  359. echo json_encode(array('msg'=>'提交调入单成功','success'=>true));
  360. exit;
  361. }else{
  362. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  363. exit;
  364. }
  365. }else if($process == 3){
  366. if(!in_array($info['dr_status'],[2,-3])){
  367. echo json_encode(array('msg'=>'当前状态不符合审核调入单的条件','success'=>false));
  368. exit;
  369. }
  370. $r = $this->logic_u9xgsd->shDr($info);
  371. if($r['code'] == 1){
  372. echo json_encode(array('msg'=>'审核调入单成功','success'=>true));
  373. exit;
  374. }else{
  375. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  376. exit;
  377. }
  378. }else{
  379. echo json_encode(array('msg'=>'当前状态不符合创建调入单的条件','success'=>false));
  380. exit;
  381. }
  382. }
  383. public function _xs_two($arg_array){
  384. $process= $arg_array[0];
  385. $id = $arg_array[1];
  386. $info = $this->zzquque_u9->read($id);
  387. if($process == 1){
  388. if(!in_array($info['xs_two_status'],[0,-1])){
  389. echo json_encode(array('msg'=>'当前状态不符合查询香港销售单的条件','success'=>false));
  390. exit;
  391. }
  392. $r = $this->logic_u9xgsd->createXsTwo($info);
  393. if($r['code'] == 1){
  394. echo json_encode(array('msg'=>'创建香港销售单成功','success'=>true));
  395. exit;
  396. }else{
  397. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  398. exit;
  399. }
  400. }else if($process == 2){
  401. if(!in_array($info['xs_two_status'],[1,-2])){
  402. echo json_encode(array('msg'=>'当前状态不符合提交香港销售单的条件','success'=>false));
  403. exit;
  404. }
  405. $r = $this->logic_u9xgsd->subXsTwo($info);
  406. if($r['code'] == 1){
  407. echo json_encode(array('msg'=>'提交香港销售单成功','success'=>true));
  408. exit;
  409. }else{
  410. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  411. exit;
  412. }
  413. }else if($process == 3){
  414. if(!in_array($info['xs_two_status'],[2,-3])){
  415. echo json_encode(array('msg'=>'当前状态不符合审核香港销售单的条件','success'=>false));
  416. exit;
  417. }
  418. $r = $this->logic_u9xgsd->shXsTwo($info);
  419. if($r['code'] == 1){
  420. echo json_encode(array('msg'=>'审核香港销售单成功','success'=>true));
  421. exit;
  422. }else{
  423. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  424. exit;
  425. }
  426. }else{
  427. echo json_encode(array('msg'=>'当前状态不符合创建香港销售单的条件','success'=>false));
  428. exit;
  429. }
  430. }
  431. public function _bzch($arg_array){
  432. $process= $arg_array[0];
  433. $id = $arg_array[1];
  434. $info = $this->zzquque_u9->read($id);
  435. if($process == 1){
  436. if(!in_array($info['bzsh_status'],[0,-1])){
  437. echo json_encode(array('msg'=>'当前状态不符合创建标准收货单的条件','success'=>false));
  438. exit;
  439. }
  440. $r = $this->logic_u9xgsd->createCh($info);
  441. if($r['code'] == 1){
  442. echo json_encode(array('msg'=>'创建标准收货单成功','success'=>true));
  443. exit;
  444. }else{
  445. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  446. exit;
  447. }
  448. }else if($process == 2){
  449. $r = $this->logic_u9xgsd->subAndShCh($info);
  450. if($r['code'] == 1){
  451. echo json_encode(array('msg'=>'审核标准收货单成功','success'=>true));
  452. exit;
  453. }else{
  454. echo json_encode(array('msg'=>$r['msg'],'success'=>false));
  455. exit;
  456. }
  457. }else{
  458. echo json_encode(array('msg'=>'当前状态不符合创建标准收货单的条件','success'=>false));
  459. exit;
  460. }
  461. }
  462. public function _bzsh($arg_array){
  463. }
  464. public function _add(){
  465. $order_no = $this->input->post('order_no',true);
  466. if(empty($order_no)){
  467. echo json_encode(['msg'=>'请输入要添加的订单编码!','success'=>false]);exit;
  468. }
  469. $info = $this->logic_order->getInfo("number = '" .$order_no."'");
  470. if(empty($info)){
  471. echo json_encode(['msg'=>'订单不存在!请仔细核对单号','success'=>false]);exit;
  472. }
  473. $num = $this->zzquque_u9->find_all("order_no = '".$info['number']."'");
  474. if(empty($num)){
  475. $this->zzquque_u9->insert([
  476. 'platform'=>$info['lv_platform'],
  477. 'warehouse'=>$info['type'],
  478. 'type'=>10,
  479. 'order_no'=>$info['number'],
  480. 'create_time'=>time(),
  481. 'update_time'=>time(),
  482. ]);
  483. echo json_encode(['msg'=>'添加成功','success'=>true]);exit;
  484. }else{
  485. echo json_encode(['msg'=>'添加失败','success'=>false]);exit;
  486. }
  487. }
  488. }