作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改短信

@@ -27,69 +27,69 @@ @@ -27,69 +27,69 @@
27 <file leaf-file-name="UserController.php" pinned="false" current-in-tab="true"> 27 <file leaf-file-name="UserController.php" pinned="false" current-in-tab="true">
28 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 28 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
29 <provider selected="true" editor-type-id="text-editor"> 29 <provider selected="true" editor-type-id="text-editor">
30 - <state relative-caret-position="325">  
31 - <caret line="84" column="15" lean-forward="true" selection-start-line="84" selection-start-column="15" selection-end-line="84" selection-end-column="15" /> 30 + <state relative-caret-position="453">
  31 + <caret line="52" column="44" lean-forward="false" selection-start-line="52" selection-start-column="44" selection-end-line="52" selection-end-column="44" />
32 <folding> 32 <folding>
33 - <element signature="e#1491#1720#0#PHP" expanded="false" />  
34 - <element signature="e#3368#3608#0#PHP" expanded="false" />  
35 - <element signature="e#3613#3848#0#PHP" expanded="false" />  
36 - <element signature="e#3854#4201#0#PHP" expanded="false" />  
37 - <element signature="e#4206#4652#0#PHP" expanded="false" />  
38 - <element signature="e#4658#4918#0#PHP" expanded="false" />  
39 - <element signature="e#4923#5124#0#PHP" expanded="false" />  
40 - <element signature="e#5130#5392#0#PHP" expanded="false" />  
41 - <element signature="e#5397#5602#0#PHP" expanded="false" />  
42 - <element signature="e#5608#6087#0#PHP" expanded="false" />  
43 - <element signature="e#6092#8211#0#PHP" expanded="false" />  
44 - <element signature="e#8234#8765#0#PHP" expanded="false" />  
45 - <element signature="e#8771#9051#0#PHP" expanded="false" />  
46 - <element signature="e#9056#9448#0#PHP" expanded="false" />  
47 - <element signature="e#9454#9738#0#PHP" expanded="false" />  
48 - <element signature="e#9743#10782#0#PHP" expanded="false" />  
49 - <element signature="e#10788#11076#0#PHP" expanded="false" />  
50 - <element signature="e#11081#12116#0#PHP" expanded="false" />  
51 - <element signature="e#12122#12703#0#PHP" expanded="false" />  
52 - <element signature="e#12708#14096#0#PHP" expanded="false" />  
53 - <element signature="e#14102#14558#0#PHP" expanded="false" />  
54 - <element signature="e#14563#16526#0#PHP" expanded="false" />  
55 - <element signature="e#16549#16904#0#PHP" expanded="false" />  
56 - <element signature="e#16910#17623#0#PHP" expanded="false" />  
57 - <element signature="e#17628#19085#0#PHP" expanded="false" />  
58 - <element signature="e#19091#19552#0#PHP" expanded="false" />  
59 - <element signature="e#19557#22579#0#PHP" expanded="false" />  
60 - <element signature="e#22585#23194#0#PHP" expanded="false" />  
61 - <element signature="e#23199#24484#0#PHP" expanded="false" />  
62 - <element signature="e#24490#24847#0#PHP" expanded="false" />  
63 - <element signature="e#24852#25733#0#PHP" expanded="false" />  
64 - <element signature="e#25739#26091#0#PHP" expanded="false" />  
65 - <element signature="e#26096#27174#0#PHP" expanded="false" />  
66 - <element signature="e#27180#27535#0#PHP" expanded="false" />  
67 - <element signature="e#27540#28634#0#PHP" expanded="false" />  
68 - <element signature="e#28640#29064#0#PHP" expanded="false" />  
69 - <element signature="e#29069#29680#0#PHP" expanded="false" />  
70 - <element signature="e#29686#30182#0#PHP" expanded="false" />  
71 - <element signature="e#30187#31884#0#PHP" expanded="false" />  
72 - <element signature="e#31890#32174#0#PHP" expanded="false" />  
73 - <element signature="e#32179#32815#0#PHP" expanded="false" />  
74 - <element signature="e#32836#33155#0#PHP" expanded="false" />  
75 - <element signature="e#33161#33569#0#PHP" expanded="false" />  
76 - <element signature="e#33575#34334#0#PHP" expanded="false" />  
77 - <element signature="e#34353#35217#0#PHP" expanded="false" />  
78 - <element signature="e#35243#35643#0#PHP" expanded="false" />  
79 - <element signature="e#35666#36239#0#PHP" expanded="false" />  
80 - <element signature="e#36262#37072#0#PHP" expanded="false" />  
81 - <element signature="e#37078#37677#0#PHP" expanded="false" />  
82 - <element signature="e#37682#38646#0#PHP" expanded="false" />  
83 - <element signature="e#38652#39319#0#PHP" expanded="false" />  
84 - <element signature="e#39324#40365#0#PHP" expanded="false" />  
85 - <element signature="e#40371#41034#0#PHP" expanded="false" />  
86 - <element signature="e#41039#42066#0#PHP" expanded="false" />  
87 - <element signature="e#42073#42504#0#PHP" expanded="false" />  
88 - <element signature="e#42509#43087#0#PHP" expanded="false" />  
89 - <element signature="e#43093#43522#0#PHP" expanded="false" />  
90 - <element signature="e#43527#44129#0#PHP" expanded="false" />  
91 - <element signature="e#44135#44562#0#PHP" expanded="false" />  
92 - <element signature="e#44567#45133#0#PHP" expanded="false" /> 33 + <element signature="e#1538#1767#0#PHP" expanded="false" />
  34 + <element signature="e#3413#3653#0#PHP" expanded="false" />
  35 + <element signature="e#3658#3893#0#PHP" expanded="false" />
  36 + <element signature="e#3899#4246#0#PHP" expanded="false" />
  37 + <element signature="e#4251#4697#0#PHP" expanded="false" />
  38 + <element signature="e#4703#4963#0#PHP" expanded="false" />
  39 + <element signature="e#4968#5169#0#PHP" expanded="false" />
  40 + <element signature="e#5175#5437#0#PHP" expanded="false" />
  41 + <element signature="e#5442#5647#0#PHP" expanded="false" />
  42 + <element signature="e#5653#6132#0#PHP" expanded="false" />
  43 + <element signature="e#6137#8256#0#PHP" expanded="false" />
  44 + <element signature="e#8279#8810#0#PHP" expanded="false" />
  45 + <element signature="e#8816#9096#0#PHP" expanded="false" />
  46 + <element signature="e#9101#9493#0#PHP" expanded="false" />
  47 + <element signature="e#9499#9783#0#PHP" expanded="false" />
  48 + <element signature="e#9788#10827#0#PHP" expanded="false" />
  49 + <element signature="e#10833#11121#0#PHP" expanded="false" />
  50 + <element signature="e#11126#12161#0#PHP" expanded="false" />
  51 + <element signature="e#12167#12748#0#PHP" expanded="false" />
  52 + <element signature="e#12753#14141#0#PHP" expanded="false" />
  53 + <element signature="e#14147#14603#0#PHP" expanded="false" />
  54 + <element signature="e#14608#16571#0#PHP" expanded="false" />
  55 + <element signature="e#16594#16949#0#PHP" expanded="false" />
  56 + <element signature="e#16955#17668#0#PHP" expanded="false" />
  57 + <element signature="e#17673#19130#0#PHP" expanded="false" />
  58 + <element signature="e#19136#19597#0#PHP" expanded="false" />
  59 + <element signature="e#19602#22624#0#PHP" expanded="false" />
  60 + <element signature="e#22630#23239#0#PHP" expanded="false" />
  61 + <element signature="e#23244#24529#0#PHP" expanded="false" />
  62 + <element signature="e#24535#24892#0#PHP" expanded="false" />
  63 + <element signature="e#24897#25778#0#PHP" expanded="false" />
  64 + <element signature="e#25784#26136#0#PHP" expanded="false" />
  65 + <element signature="e#26141#27219#0#PHP" expanded="false" />
  66 + <element signature="e#27225#27580#0#PHP" expanded="false" />
  67 + <element signature="e#27585#28679#0#PHP" expanded="false" />
  68 + <element signature="e#28685#29109#0#PHP" expanded="false" />
  69 + <element signature="e#29114#29725#0#PHP" expanded="false" />
  70 + <element signature="e#29731#30227#0#PHP" expanded="false" />
  71 + <element signature="e#30232#31929#0#PHP" expanded="false" />
  72 + <element signature="e#31935#32219#0#PHP" expanded="false" />
  73 + <element signature="e#32224#32860#0#PHP" expanded="false" />
  74 + <element signature="e#32881#33200#0#PHP" expanded="false" />
  75 + <element signature="e#33206#33614#0#PHP" expanded="false" />
  76 + <element signature="e#33620#34379#0#PHP" expanded="false" />
  77 + <element signature="e#34398#35262#0#PHP" expanded="false" />
  78 + <element signature="e#35288#35688#0#PHP" expanded="false" />
  79 + <element signature="e#35711#36284#0#PHP" expanded="false" />
  80 + <element signature="e#36307#37117#0#PHP" expanded="false" />
  81 + <element signature="e#37123#37722#0#PHP" expanded="false" />
  82 + <element signature="e#37727#38691#0#PHP" expanded="false" />
  83 + <element signature="e#38697#39364#0#PHP" expanded="false" />
  84 + <element signature="e#39369#40410#0#PHP" expanded="false" />
  85 + <element signature="e#40416#41079#0#PHP" expanded="false" />
  86 + <element signature="e#41084#42111#0#PHP" expanded="false" />
  87 + <element signature="e#42118#42549#0#PHP" expanded="false" />
  88 + <element signature="e#42554#43132#0#PHP" expanded="false" />
  89 + <element signature="e#43138#43567#0#PHP" expanded="false" />
  90 + <element signature="e#43572#44174#0#PHP" expanded="false" />
  91 + <element signature="e#44180#44607#0#PHP" expanded="false" />
  92 + <element signature="e#44612#45178#0#PHP" expanded="false" />
93 </folding> 93 </folding>
94 </state> 94 </state>
95 </provider> 95 </provider>
@@ -193,11 +193,11 @@ @@ -193,11 +193,11 @@
193 <sorting>DEFINITION_ORDER</sorting> 193 <sorting>DEFINITION_ORDER</sorting>
194 </component> 194 </component>
195 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> 195 <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
196 - <component name="ProjectFrameBounds" extendedState="1">  
197 - <option name="x" value="162" />  
198 - <option name="y" value="147" /> 196 + <component name="ProjectFrameBounds">
  197 + <option name="x" value="396" />
  198 + <option name="y" value="104" />
199 <option name="width" value="1700" /> 199 <option name="width" value="1700" />
200 - <option name="height" value="1037" /> 200 + <option name="height" value="1030" />
201 </component> 201 </component>
202 <component name="ProjectView"> 202 <component name="ProjectView">
203 <navigator currentView="ProjectPane" proportions="" version="1"> 203 <navigator currentView="ProjectPane" proportions="" version="1">
@@ -351,15 +351,15 @@ @@ -351,15 +351,15 @@
351 <workItem from="1575444399653" duration="12810000" /> 351 <workItem from="1575444399653" duration="12810000" />
352 <workItem from="1575462840839" duration="250000" /> 352 <workItem from="1575462840839" duration="250000" />
353 <workItem from="1575506248144" duration="15103000" /> 353 <workItem from="1575506248144" duration="15103000" />
354 - <workItem from="1575527294268" duration="8503000" /> 354 + <workItem from="1575527294268" duration="9387000" />
355 </task> 355 </task>
356 <servers /> 356 <servers />
357 </component> 357 </component>
358 <component name="TimeTrackingManager"> 358 <component name="TimeTrackingManager">
359 - <option name="totallyTimeSpent" value="490315000" /> 359 + <option name="totallyTimeSpent" value="491199000" />
360 </component> 360 </component>
361 <component name="ToolWindowManager"> 361 <component name="ToolWindowManager">
362 - <frame x="162" y="147" width="1700" height="1037" extended-state="1" /> 362 + <frame x="396" y="104" width="1700" height="1030" extended-state="0" />
363 <editor active="true" /> 363 <editor active="true" />
364 <layout> 364 <layout>
365 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16341463" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> 365 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16341463" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
@@ -408,7 +408,7 @@ @@ -408,7 +408,7 @@
408 </component> 408 </component>
409 <component name="XDebuggerManager"> 409 <component name="XDebuggerManager">
410 <breakpoint-manager> 410 <breakpoint-manager>
411 - <option name="time" value="10" /> 411 + <option name="time" value="12" />
412 </breakpoint-manager> 412 </breakpoint-manager>
413 <watches-manager /> 413 <watches-manager />
414 </component> 414 </component>
@@ -908,69 +908,69 @@ @@ -908,69 +908,69 @@
908 </entry> 908 </entry>
909 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php"> 909 <entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
910 <provider selected="true" editor-type-id="text-editor"> 910 <provider selected="true" editor-type-id="text-editor">
911 - <state relative-caret-position="325">  
912 - <caret line="84" column="15" lean-forward="true" selection-start-line="84" selection-start-column="15" selection-end-line="84" selection-end-column="15" /> 911 + <state relative-caret-position="453">
  912 + <caret line="52" column="44" lean-forward="false" selection-start-line="52" selection-start-column="44" selection-end-line="52" selection-end-column="44" />
913 <folding> 913 <folding>
914 - <element signature="e#1491#1720#0#PHP" expanded="false" />  
915 - <element signature="e#3368#3608#0#PHP" expanded="false" />  
916 - <element signature="e#3613#3848#0#PHP" expanded="false" />  
917 - <element signature="e#3854#4201#0#PHP" expanded="false" />  
918 - <element signature="e#4206#4652#0#PHP" expanded="false" />  
919 - <element signature="e#4658#4918#0#PHP" expanded="false" />  
920 - <element signature="e#4923#5124#0#PHP" expanded="false" />  
921 - <element signature="e#5130#5392#0#PHP" expanded="false" />  
922 - <element signature="e#5397#5602#0#PHP" expanded="false" />  
923 - <element signature="e#5608#6087#0#PHP" expanded="false" />  
924 - <element signature="e#6092#8211#0#PHP" expanded="false" />  
925 - <element signature="e#8234#8765#0#PHP" expanded="false" />  
926 - <element signature="e#8771#9051#0#PHP" expanded="false" />  
927 - <element signature="e#9056#9448#0#PHP" expanded="false" />  
928 - <element signature="e#9454#9738#0#PHP" expanded="false" />  
929 - <element signature="e#9743#10782#0#PHP" expanded="false" />  
930 - <element signature="e#10788#11076#0#PHP" expanded="false" />  
931 - <element signature="e#11081#12116#0#PHP" expanded="false" />  
932 - <element signature="e#12122#12703#0#PHP" expanded="false" />  
933 - <element signature="e#12708#14096#0#PHP" expanded="false" />  
934 - <element signature="e#14102#14558#0#PHP" expanded="false" />  
935 - <element signature="e#14563#16526#0#PHP" expanded="false" />  
936 - <element signature="e#16549#16904#0#PHP" expanded="false" />  
937 - <element signature="e#16910#17623#0#PHP" expanded="false" />  
938 - <element signature="e#17628#19085#0#PHP" expanded="false" />  
939 - <element signature="e#19091#19552#0#PHP" expanded="false" />  
940 - <element signature="e#19557#22579#0#PHP" expanded="false" />  
941 - <element signature="e#22585#23194#0#PHP" expanded="false" />  
942 - <element signature="e#23199#24484#0#PHP" expanded="false" />  
943 - <element signature="e#24490#24847#0#PHP" expanded="false" />  
944 - <element signature="e#24852#25733#0#PHP" expanded="false" />  
945 - <element signature="e#25739#26091#0#PHP" expanded="false" />  
946 - <element signature="e#26096#27174#0#PHP" expanded="false" />  
947 - <element signature="e#27180#27535#0#PHP" expanded="false" />  
948 - <element signature="e#27540#28634#0#PHP" expanded="false" />  
949 - <element signature="e#28640#29064#0#PHP" expanded="false" />  
950 - <element signature="e#29069#29680#0#PHP" expanded="false" />  
951 - <element signature="e#29686#30182#0#PHP" expanded="false" />  
952 - <element signature="e#30187#31884#0#PHP" expanded="false" />  
953 - <element signature="e#31890#32174#0#PHP" expanded="false" />  
954 - <element signature="e#32179#32815#0#PHP" expanded="false" />  
955 - <element signature="e#32836#33155#0#PHP" expanded="false" />  
956 - <element signature="e#33161#33569#0#PHP" expanded="false" />  
957 - <element signature="e#33575#34334#0#PHP" expanded="false" />  
958 - <element signature="e#34353#35217#0#PHP" expanded="false" />  
959 - <element signature="e#35243#35643#0#PHP" expanded="false" />  
960 - <element signature="e#35666#36239#0#PHP" expanded="false" />  
961 - <element signature="e#36262#37072#0#PHP" expanded="false" />  
962 - <element signature="e#37078#37677#0#PHP" expanded="false" />  
963 - <element signature="e#37682#38646#0#PHP" expanded="false" />  
964 - <element signature="e#38652#39319#0#PHP" expanded="false" />  
965 - <element signature="e#39324#40365#0#PHP" expanded="false" />  
966 - <element signature="e#40371#41034#0#PHP" expanded="false" />  
967 - <element signature="e#41039#42066#0#PHP" expanded="false" />  
968 - <element signature="e#42073#42504#0#PHP" expanded="false" />  
969 - <element signature="e#42509#43087#0#PHP" expanded="false" />  
970 - <element signature="e#43093#43522#0#PHP" expanded="false" />  
971 - <element signature="e#43527#44129#0#PHP" expanded="false" />  
972 - <element signature="e#44135#44562#0#PHP" expanded="false" />  
973 - <element signature="e#44567#45133#0#PHP" expanded="false" /> 914 + <element signature="e#1538#1767#0#PHP" expanded="false" />
  915 + <element signature="e#3413#3653#0#PHP" expanded="false" />
  916 + <element signature="e#3658#3893#0#PHP" expanded="false" />
  917 + <element signature="e#3899#4246#0#PHP" expanded="false" />
  918 + <element signature="e#4251#4697#0#PHP" expanded="false" />
  919 + <element signature="e#4703#4963#0#PHP" expanded="false" />
  920 + <element signature="e#4968#5169#0#PHP" expanded="false" />
  921 + <element signature="e#5175#5437#0#PHP" expanded="false" />
  922 + <element signature="e#5442#5647#0#PHP" expanded="false" />
  923 + <element signature="e#5653#6132#0#PHP" expanded="false" />
  924 + <element signature="e#6137#8256#0#PHP" expanded="false" />
  925 + <element signature="e#8279#8810#0#PHP" expanded="false" />
  926 + <element signature="e#8816#9096#0#PHP" expanded="false" />
  927 + <element signature="e#9101#9493#0#PHP" expanded="false" />
  928 + <element signature="e#9499#9783#0#PHP" expanded="false" />
  929 + <element signature="e#9788#10827#0#PHP" expanded="false" />
  930 + <element signature="e#10833#11121#0#PHP" expanded="false" />
  931 + <element signature="e#11126#12161#0#PHP" expanded="false" />
  932 + <element signature="e#12167#12748#0#PHP" expanded="false" />
  933 + <element signature="e#12753#14141#0#PHP" expanded="false" />
  934 + <element signature="e#14147#14603#0#PHP" expanded="false" />
  935 + <element signature="e#14608#16571#0#PHP" expanded="false" />
  936 + <element signature="e#16594#16949#0#PHP" expanded="false" />
  937 + <element signature="e#16955#17668#0#PHP" expanded="false" />
  938 + <element signature="e#17673#19130#0#PHP" expanded="false" />
  939 + <element signature="e#19136#19597#0#PHP" expanded="false" />
  940 + <element signature="e#19602#22624#0#PHP" expanded="false" />
  941 + <element signature="e#22630#23239#0#PHP" expanded="false" />
  942 + <element signature="e#23244#24529#0#PHP" expanded="false" />
  943 + <element signature="e#24535#24892#0#PHP" expanded="false" />
  944 + <element signature="e#24897#25778#0#PHP" expanded="false" />
  945 + <element signature="e#25784#26136#0#PHP" expanded="false" />
  946 + <element signature="e#26141#27219#0#PHP" expanded="false" />
  947 + <element signature="e#27225#27580#0#PHP" expanded="false" />
  948 + <element signature="e#27585#28679#0#PHP" expanded="false" />
  949 + <element signature="e#28685#29109#0#PHP" expanded="false" />
  950 + <element signature="e#29114#29725#0#PHP" expanded="false" />
  951 + <element signature="e#29731#30227#0#PHP" expanded="false" />
  952 + <element signature="e#30232#31929#0#PHP" expanded="false" />
  953 + <element signature="e#31935#32219#0#PHP" expanded="false" />
  954 + <element signature="e#32224#32860#0#PHP" expanded="false" />
  955 + <element signature="e#32881#33200#0#PHP" expanded="false" />
  956 + <element signature="e#33206#33614#0#PHP" expanded="false" />
  957 + <element signature="e#33620#34379#0#PHP" expanded="false" />
  958 + <element signature="e#34398#35262#0#PHP" expanded="false" />
  959 + <element signature="e#35288#35688#0#PHP" expanded="false" />
  960 + <element signature="e#35711#36284#0#PHP" expanded="false" />
  961 + <element signature="e#36307#37117#0#PHP" expanded="false" />
  962 + <element signature="e#37123#37722#0#PHP" expanded="false" />
  963 + <element signature="e#37727#38691#0#PHP" expanded="false" />
  964 + <element signature="e#38697#39364#0#PHP" expanded="false" />
  965 + <element signature="e#39369#40410#0#PHP" expanded="false" />
  966 + <element signature="e#40416#41079#0#PHP" expanded="false" />
  967 + <element signature="e#41084#42111#0#PHP" expanded="false" />
  968 + <element signature="e#42118#42549#0#PHP" expanded="false" />
  969 + <element signature="e#42554#43132#0#PHP" expanded="false" />
  970 + <element signature="e#43138#43567#0#PHP" expanded="false" />
  971 + <element signature="e#43572#44174#0#PHP" expanded="false" />
  972 + <element signature="e#44180#44607#0#PHP" expanded="false" />
  973 + <element signature="e#44612#45178#0#PHP" expanded="false" />
974 </folding> 974 </folding>
975 </state> 975 </state>
976 </provider> 976 </provider>
@@ -39,8 +39,6 @@ class UserController extends RestBaseController @@ -39,8 +39,6 @@ class UserController extends RestBaseController
39 { 39 {
40 $user_id = $this->getUserId(); 40 $user_id = $this->getUserId();
41 $param = $this->request->param(); 41 $param = $this->request->param();
42 - $param['create_time'] = time();  
43 - $param['user_id'] = $user_id;  
44 $validate = new Validate([ 42 $validate = new Validate([
45 'phone' => 'require|max:11', 43 'phone' => 'require|max:11',
46 'code'=>'require' 44 'code'=>'require'
@@ -50,8 +48,11 @@ class UserController extends RestBaseController @@ -50,8 +48,11 @@ class UserController extends RestBaseController
50 } 48 }
51 $code = Cache::get($param['phone']); 49 $code = Cache::get($param['phone']);
52 if($code == $param['code']){ 50 if($code == $param['code']){
  51 + $res['user_id'] = $user_id;
  52 + $res['create_time'] = time();
  53 + $res['phone'] = $param['phone'];
53 $data = Db::name('integral') 54 $data = Db::name('integral')
54 - ->insert($param); 55 + ->insert($res);
55 if($data){ 56 if($data){
56 $this->success('SUCCESS'); 57 $this->success('SUCCESS');
57 } 58 }
@@ -84,7 +85,7 @@ class UserController extends RestBaseController @@ -84,7 +85,7 @@ class UserController extends RestBaseController
84 $number = generateCode(); 85 $number = generateCode();
85 //发送验证码 86 //发送验证码
86 $data = array( 87 $data = array(
87 - 'content' => "【蓝科环保】垃圾分类,共创绿色生活,您的验证码是:" . $number.",十分钟之内有效,请勿向他人泄漏您的验证码",//短信内容 88 + 'content' => "【蓝科环保】垃圾分类,共创绿色生活,您的验证码是:" .$number.",十分钟之内有效,请勿向他人泄漏您的验证码",//短信内容
88 'mobile' => $phone,//手机号码 89 'mobile' => $phone,//手机号码
89 'productid' => '676767',//产品id 90 'productid' => '676767',//产品id
90 'xh' => ''//小号 91 'xh' => ''//小号
@@ -93,7 +94,7 @@ class UserController extends RestBaseController @@ -93,7 +94,7 @@ class UserController extends RestBaseController
93 if (substr($result, 0, strpos($result, ',')) != "1") { 94 if (substr($result, 0, strpos($result, ',')) != "1") {
94 $this->error(['code' => 42001, 'msg' => $result]); 95 $this->error(['code' => 42001, 'msg' => $result]);
95 } 96 }
96 - Cache::set($phone,$number,6000); 97 + Cache::set($phone,$number,600);
97 // $code = Db::name('code') 98 // $code = Db::name('code')
98 // ->where('phone',$phone) 99 // ->where('phone',$phone)
99 // ->find(); 100 // ->find();