Browse Source

代码提交

xiaoming_global 4 years ago
parent
commit
a767857d65

+ 477 - 26
.idea/workspace.xml View File

@@ -1,7 +1,24 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="b2adb873-ba08-458c-9357-4c6584e112eb" name="Default" comment="" />
4
+    <list default="true" id="b2adb873-ba08-458c-9357-4c6584e112eb" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/conf/app.conf" beforeDir="false" afterPath="$PROJECT_DIR$/conf/app.conf" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/controllers/global/open_wechat_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/global/open_wechat_controller.go" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/controllers/members/members_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/members/members_controller.go" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/controllers/mpwechat/menu_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/mpwechat/menu_controller.go" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/controllers/mpwechat/mpwechat_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/mpwechat/mpwechat_controller.go" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/controllers/site/site_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/site/site_controller.go" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/jobcron/open_wechat_job.go" beforeDir="false" afterPath="$PROJECT_DIR$/jobcron/open_wechat_job.go" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/models/activity_models.go" beforeDir="false" afterPath="$PROJECT_DIR$/models/activity_models.go" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/models/site_models.go" beforeDir="false" afterPath="$PROJECT_DIR$/models/site_models.go" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/models/user_customer_models.go" beforeDir="false" afterPath="$PROJECT_DIR$/models/user_customer_models.go" afterDir="false" />
16
+      <change beforePath="$PROJECT_DIR$/routers/router.go" beforeDir="false" afterPath="$PROJECT_DIR$/routers/router.go" afterDir="false" />
17
+      <change beforePath="$PROJECT_DIR$/service/member_service/member_service.go" beforeDir="false" afterPath="$PROJECT_DIR$/service/member_service/member_service.go" afterDir="false" />
18
+      <change beforePath="$PROJECT_DIR$/service/redis.go" beforeDir="false" afterPath="$PROJECT_DIR$/service/redis.go" afterDir="false" />
19
+      <change beforePath="$PROJECT_DIR$/service/site_service/site_microwebsite_service.go" beforeDir="false" afterPath="$PROJECT_DIR$/service/site_service/site_microwebsite_service.go" afterDir="false" />
20
+      <change beforePath="$PROJECT_DIR$/service/wechat_service/open_wechat_service.go" beforeDir="false" afterPath="$PROJECT_DIR$/service/wechat_service/open_wechat_service.go" afterDir="false" />
21
+    </list>
5 22
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6 23
     <option name="TRACKING_ENABLED" value="true" />
7 24
     <option name="SHOW_DIALOG" value="false" />
@@ -11,26 +28,103 @@
11 28
   </component>
12 29
   <component name="FileEditorManager">
13 30
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
14
-      <file leaf-file-name="router.go" pinned="false" current-in-tab="false">
15
-        <entry file="file://$PROJECT_DIR$/routers/router.go">
31
+      <file leaf-file-name="app.conf" pinned="false" current-in-tab="true">
32
+        <entry file="file://$PROJECT_DIR$/conf/app.conf">
16 33
           <provider selected="true" editor-type-id="text-editor">
17
-            <state relative-caret-position="132">
18
-              <caret line="22" column="59" selection-start-line="22" selection-start-column="43" selection-end-line="22" selection-end-column="59" />
34
+            <state relative-caret-position="44">
35
+              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
19 36
             </state>
20 37
           </provider>
21 38
         </entry>
22 39
       </file>
23
-      <file leaf-file-name="app.conf" pinned="false" current-in-tab="true">
24
-        <entry file="file://$PROJECT_DIR$/conf/app.conf">
40
+      <file leaf-file-name="site_controller.go" pinned="false" current-in-tab="false">
41
+        <entry file="file://$PROJECT_DIR$/controllers/site/site_controller.go">
42
+          <provider selected="true" editor-type-id="text-editor">
43
+            <state relative-caret-position="-4633">
44
+              <caret line="4055" column="55" selection-start-line="4055" selection-start-column="37" selection-end-line="4055" selection-end-column="55" />
45
+            </state>
46
+          </provider>
47
+        </entry>
48
+      </file>
49
+      <file leaf-file-name="site_microwebsite_service.go" pinned="false" current-in-tab="false">
50
+        <entry file="file://$PROJECT_DIR$/service/site_service/site_microwebsite_service.go">
51
+          <provider selected="true" editor-type-id="text-editor">
52
+            <state relative-caret-position="108">
53
+              <caret line="766" column="5" selection-start-line="766" selection-start-column="5" selection-end-line="766" selection-end-column="5" />
54
+            </state>
55
+          </provider>
56
+        </entry>
57
+      </file>
58
+      <file leaf-file-name="activity_models.go" pinned="false" current-in-tab="false">
59
+        <entry file="file://$PROJECT_DIR$/models/activity_models.go">
60
+          <provider selected="true" editor-type-id="text-editor">
61
+            <state relative-caret-position="660">
62
+              <caret line="30" column="95" selection-start-line="30" selection-start-column="95" selection-end-line="30" selection-end-column="95" />
63
+            </state>
64
+          </provider>
65
+        </entry>
66
+      </file>
67
+      <file leaf-file-name="micro_service.go" pinned="false" current-in-tab="false">
68
+        <entry file="file://$PROJECT_DIR$/service/micro_service/micro_service.go">
69
+          <provider selected="true" editor-type-id="text-editor">
70
+            <state relative-caret-position="156">
71
+              <caret line="50" column="26" selection-start-line="50" selection-start-column="5" selection-end-line="50" selection-end-column="26" />
72
+            </state>
73
+          </provider>
74
+        </entry>
75
+      </file>
76
+      <file leaf-file-name="micro_controller.go" pinned="false" current-in-tab="false">
77
+        <entry file="file://$PROJECT_DIR$/controllers/micro/micro_controller.go">
25 78
           <provider selected="true" editor-type-id="text-editor">
26
-            <state relative-caret-position="241">
27
-              <caret line="121" lean-forward="true" selection-start-line="81" selection-end-line="121" />
79
+            <state relative-caret-position="172">
80
+              <caret line="187" column="42" selection-start-line="187" selection-start-column="42" selection-end-line="187" selection-end-column="42" />
28 81
             </state>
29 82
           </provider>
30 83
         </entry>
31 84
       </file>
32 85
     </leaf>
33 86
   </component>
87
+  <component name="FileTemplateManagerImpl">
88
+    <option name="RECENT_TEMPLATES">
89
+      <list>
90
+        <option value="Go Application" />
91
+      </list>
92
+    </option>
93
+  </component>
94
+  <component name="FindInProjectRecents">
95
+    <findStrings>
96
+      <find>SaveNavigation</find>
97
+      <find>GetNavigationset</find>
98
+      <find>/api/staff/getAllStaffInfo</find>
99
+      <find>GetAllStaffInfo</find>
100
+      <find>/api/site/getordermodel</find>
101
+      <find>GetOrderModel</find>
102
+      <find>GetOrderData</find>
103
+      <find>GetAllConnecway</find>
104
+      <find>AddMagiclinkData</find>
105
+      <find>GetDatatwo</find>
106
+      <find>AddArticelist</find>
107
+      <find>GetDoctorDetail</find>
108
+      <find>GetDoctorInfo</find>
109
+      <find>GetActivitiesListDetail</find>
110
+      <find>limit</find>
111
+      <find>GetAllActivities</find>
112
+      <find>DeleteRotations</find>
113
+      <find>DeleteSingleImages</find>
114
+      <find>magiclink</find>
115
+      <find>UpdateLinkAddress</find>
116
+      <find>UpdateEditMacForm</find>
117
+      <find>AddMacLinkAddress</find>
118
+      <find>GetLikeMacAddressById</find>
119
+      <find>GetActivities</find>
120
+      <find>/api/site/getactivities</find>
121
+      <find>GetArticlistDetail</find>
122
+      <find>GetArticlelist</find>
123
+      <find>GetAllArticles</find>
124
+      <find>GetActivitesDetail</find>
125
+      <find>webim登录成功</find>
126
+    </findStrings>
127
+  </component>
34 128
   <component name="GOROOT" path="C:\Go" />
35 129
   <component name="Git.Settings">
36 130
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@@ -38,8 +132,29 @@
38 132
   <component name="IdeDocumentHistory">
39 133
     <option name="CHANGED_PATHS">
40 134
       <list>
41
-        <option value="$PROJECT_DIR$/conf/app.conf" />
135
+        <option value="$PROJECT_DIR$/controllers/Micro/micro_controller.go" />
136
+        <option value="$PROJECT_DIR$/controllers/Micro/router_collector.go" />
137
+        <option value="$PROJECT_DIR$/controllers/base_controller.go" />
138
+        <option value="$PROJECT_DIR$/controllers/mpwechat/mpwechat_controller.go" />
139
+        <option value="$PROJECT_DIR$/../github.com/go-redis/redis/commands.go" />
140
+        <option value="$PROJECT_DIR$/service/redis.go" />
141
+        <option value="$PROJECT_DIR$/jobcron/open_wechat_job.go" />
142
+        <option value="$PROJECT_DIR$/controllers/global/open_wechat_controller.go" />
143
+        <option value="$PROJECT_DIR$/service/article_service/article_category_service.go" />
144
+        <option value="$PROJECT_DIR$/controllers/micro/router_collector.go" />
145
+        <option value="$PROJECT_DIR$/controllers/members/members_controller.go" />
146
+        <option value="$PROJECT_DIR$/models/user_customer_models.go" />
147
+        <option value="$PROJECT_DIR$/service/member_service/member_service.go" />
148
+        <option value="$PROJECT_DIR$/models/site_models.go" />
42 149
         <option value="$PROJECT_DIR$/routers/router.go" />
150
+        <option value="$PROJECT_DIR$/controllers/mpwechat/menu_controller.go" />
151
+        <option value="$PROJECT_DIR$/service/wechat_service/open_wechat_service.go" />
152
+        <option value="$PROJECT_DIR$/models/activity_models.go" />
153
+        <option value="$PROJECT_DIR$/controllers/site/site_controller.go" />
154
+        <option value="$PROJECT_DIR$/service/site_service/site_microwebsite_service.go" />
155
+        <option value="$PROJECT_DIR$/service/micro_service/micro_service.go" />
156
+        <option value="$PROJECT_DIR$/controllers/micro/micro_controller.go" />
157
+        <option value="$PROJECT_DIR$/conf/app.conf" />
43 158
       </list>
44 159
     </option>
45 160
   </component>
@@ -50,9 +165,8 @@
50 165
     <sorting>DEFINITION_ORDER</sorting>
51 166
   </component>
52 167
   <component name="ProjectFrameBounds" extendedState="6">
53
-    <option name="x" value="16" />
54
-    <option name="y" value="305" />
55
-    <option name="width" value="1874" />
168
+    <option name="x" value="525" />
169
+    <option name="width" value="1230" />
56 170
     <option name="height" value="1040" />
57 171
   </component>
58 172
   <component name="ProjectView">
@@ -75,7 +189,35 @@
75 189
             <path>
76 190
               <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
77 191
               <item name="SCRM" type="462c0819:PsiDirectoryNode" />
78
-              <item name="routers" type="462c0819:PsiDirectoryNode" />
192
+              <item name="controllers" type="462c0819:PsiDirectoryNode" />
193
+            </path>
194
+            <path>
195
+              <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
196
+              <item name="SCRM" type="462c0819:PsiDirectoryNode" />
197
+              <item name="controllers" type="462c0819:PsiDirectoryNode" />
198
+              <item name="micro" type="462c0819:PsiDirectoryNode" />
199
+            </path>
200
+            <path>
201
+              <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
202
+              <item name="SCRM" type="462c0819:PsiDirectoryNode" />
203
+              <item name="controllers" type="462c0819:PsiDirectoryNode" />
204
+              <item name="site" type="462c0819:PsiDirectoryNode" />
205
+            </path>
206
+            <path>
207
+              <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
208
+              <item name="SCRM" type="462c0819:PsiDirectoryNode" />
209
+              <item name="models" type="462c0819:PsiDirectoryNode" />
210
+            </path>
211
+            <path>
212
+              <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
213
+              <item name="SCRM" type="462c0819:PsiDirectoryNode" />
214
+              <item name="service" type="462c0819:PsiDirectoryNode" />
215
+            </path>
216
+            <path>
217
+              <item name="SCRM" type="b2602c69:ProjectViewProjectNode" />
218
+              <item name="SCRM" type="462c0819:PsiDirectoryNode" />
219
+              <item name="service" type="462c0819:PsiDirectoryNode" />
220
+              <item name="micro_service" type="462c0819:PsiDirectoryNode" />
79 221
             </path>
80 222
           </expand>
81 223
           <select />
@@ -85,6 +227,7 @@
85 227
     </panes>
86 228
   </component>
87 229
   <component name="PropertiesComponent">
230
+    <property name="DefaultGoTemplateProperty" value="Go Application" />
88 231
     <property name="configurable.Global.GOPATH.is.expanded" value="true" />
89 232
     <property name="configurable.Project.GOPATH.is.expanded" value="true" />
90 233
     <property name="go.gopath.indexing.explicitly.defined" value="true" />
@@ -94,6 +237,11 @@
94 237
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
95 238
     <property name="settings.editor.selected.configurable" value="com.goide.configuration.GoLibrariesConfigurableProvider" />
96 239
   </component>
240
+  <component name="RecentsManager">
241
+    <key name="MoveFile.RECENT_KEYS">
242
+      <recent name="D:\goyard\src\SCRM\service\article_service" />
243
+    </key>
244
+  </component>
97 245
   <component name="RunDashboard">
98 246
     <option name="ruleStates">
99 247
       <list>
@@ -108,17 +256,17 @@
108 256
   </component>
109 257
   <component name="ToolWindowManager">
110 258
     <frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
111
-    <editor active="true" />
112 259
     <layout>
113
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.26340482" />
260
+      <window_info content_ui="combo" id="Project" order="0" sideWeight="0.81006867" visible="true" weight="0.33981234" />
114 261
       <window_info anchor="bottom" id="TODO" order="6" />
115
-      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
262
+      <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.22319035" side_tool="true" visible="true" weight="0.4550642" />
116 263
       <window_info anchor="right" id="Database" order="3" />
117
-      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
118
-      <window_info anchor="bottom" id="Version Control" order="7" />
264
+      <window_info anchor="bottom" id="Find" order="1" />
265
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
266
+      <window_info anchor="bottom" id="Version Control" order="9" />
119 267
       <window_info anchor="bottom" id="Run" order="2" />
120
-      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
121
-      <window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.43081313" />
268
+      <window_info id="Structure" order="1" sideWeight="0.18993135" side_tool="true" weight="0.288874" />
269
+      <window_info active="true" anchor="bottom" id="Terminal" order="10" sideWeight="0.77680963" visible="true" weight="0.4550642" />
122 270
       <window_info id="Favorites" order="2" side_tool="true" />
123 271
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
124 272
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -127,7 +275,6 @@
127 275
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
128 276
       <window_info anchor="bottom" id="Message" order="0" />
129 277
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
130
-      <window_info anchor="bottom" id="Find" order="1" />
131 278
     </layout>
132 279
   </component>
133 280
   <component name="TypeScriptGeneratedFilesManager">
@@ -136,7 +283,68 @@
136 283
   <component name="VcsContentAnnotationSettings">
137 284
     <option name="myLimit" value="2678400000" />
138 285
   </component>
286
+  <component name="XDebuggerManager">
287
+    <breakpoint-manager>
288
+      <option name="time" value="1" />
289
+    </breakpoint-manager>
290
+  </component>
139 291
   <component name="editorHistoryManager">
292
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
293
+      <provider selected="true" editor-type-id="text-editor">
294
+        <state relative-caret-position="308">
295
+          <caret line="30" column="32" selection-start-line="30" selection-start-column="32" selection-end-line="30" selection-end-column="32" />
296
+        </state>
297
+      </provider>
298
+    </entry>
299
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
300
+      <provider selected="true" editor-type-id="text-editor">
301
+        <state relative-caret-position="2596">
302
+          <caret line="118" column="16" selection-start-line="118" selection-start-column="16" selection-end-line="118" selection-end-column="16" />
303
+        </state>
304
+      </provider>
305
+    </entry>
306
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
307
+      <provider selected="true" editor-type-id="text-editor">
308
+        <state relative-caret-position="308">
309
+          <caret line="30" column="32" selection-start-line="30" selection-start-column="32" selection-end-line="30" selection-end-column="32" />
310
+        </state>
311
+      </provider>
312
+    </entry>
313
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
314
+      <provider selected="true" editor-type-id="text-editor">
315
+        <state relative-caret-position="2596">
316
+          <caret line="118" column="16" selection-start-line="118" selection-start-column="16" selection-end-line="118" selection-end-column="16" />
317
+        </state>
318
+      </provider>
319
+    </entry>
320
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
321
+      <provider selected="true" editor-type-id="text-editor">
322
+        <state relative-caret-position="308">
323
+          <caret line="30" column="32" selection-start-line="30" selection-start-column="32" selection-end-line="30" selection-end-column="32" />
324
+        </state>
325
+      </provider>
326
+    </entry>
327
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
328
+      <provider selected="true" editor-type-id="text-editor">
329
+        <state relative-caret-position="2596">
330
+          <caret line="118" column="16" selection-start-line="118" selection-start-column="16" selection-end-line="118" selection-end-column="16" />
331
+        </state>
332
+      </provider>
333
+    </entry>
334
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
335
+      <provider selected="true" editor-type-id="text-editor">
336
+        <state relative-caret-position="132">
337
+          <caret line="22" column="59" selection-start-line="22" selection-start-column="43" selection-end-line="22" selection-end-column="59" />
338
+        </state>
339
+      </provider>
340
+    </entry>
341
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
342
+      <provider selected="true" editor-type-id="text-editor">
343
+        <state relative-caret-position="2662">
344
+          <caret line="121" lean-forward="true" selection-start-line="81" selection-end-line="121" />
345
+        </state>
346
+      </provider>
347
+    </entry>
140 348
     <entry file="file://$PROJECT_DIR$/routers/router.go">
141 349
       <provider selected="true" editor-type-id="text-editor">
142 350
         <state relative-caret-position="132">
@@ -179,17 +387,260 @@
179 387
         </state>
180 388
       </provider>
181 389
     </entry>
182
-    <entry file="file://$PROJECT_DIR$/routers/router.go">
390
+    <entry file="file://$PROJECT_DIR$/controllers/members/router_controller.go">
391
+      <provider selected="true" editor-type-id="text-editor">
392
+        <state relative-caret-position="44">
393
+          <caret line="2" column="20" selection-start-line="2" selection-start-column="5" selection-end-line="2" selection-end-column="20" />
394
+        </state>
395
+      </provider>
396
+    </entry>
397
+    <entry file="file://$PROJECT_DIR$/controllers/mpwechat/reply_controller.go">
398
+      <provider selected="true" editor-type-id="text-editor">
399
+        <state relative-caret-position="59">
400
+          <caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
401
+        </state>
402
+      </provider>
403
+    </entry>
404
+    <entry file="file://$PROJECT_DIR$/controllers/mpwechat/material_controller.go">
405
+      <provider selected="true" editor-type-id="text-editor">
406
+        <state relative-caret-position="59">
407
+          <caret line="20" column="5" selection-start-line="20" selection-start-column="5" selection-end-line="20" selection-end-column="5" />
408
+        </state>
409
+      </provider>
410
+    </entry>
411
+    <entry file="file://$PROJECT_DIR$/controllers/mpwechat/router_controller.go">
183 412
       <provider selected="true" editor-type-id="text-editor">
184 413
         <state relative-caret-position="132">
185
-          <caret line="22" column="59" selection-start-line="22" selection-start-column="43" selection-end-line="22" selection-end-column="59" />
414
+          <caret line="6" column="30" selection-start-line="6" selection-start-column="4" selection-end-line="6" selection-end-column="30" />
415
+        </state>
416
+      </provider>
417
+    </entry>
418
+    <entry file="file://$PROJECT_DIR$/service/wechat_service/open_wechat_model.go">
419
+      <provider selected="true" editor-type-id="text-editor">
420
+        <state relative-caret-position="22">
421
+          <caret line="17" column="5" selection-start-line="17" selection-start-column="5" selection-end-line="17" selection-end-column="5" />
422
+        </state>
423
+      </provider>
424
+    </entry>
425
+    <entry file="file://$PROJECT_DIR$/utils/tools.go">
426
+      <provider selected="true" editor-type-id="text-editor">
427
+        <state relative-caret-position="170">
428
+          <caret line="244" column="5" selection-start-line="244" selection-start-column="5" selection-end-line="244" selection-end-column="5" />
429
+        </state>
430
+      </provider>
431
+    </entry>
432
+    <entry file="file://$PROJECT_DIR$/service/redis.go">
433
+      <provider selected="true" editor-type-id="text-editor">
434
+        <state relative-caret-position="336">
435
+          <caret line="18" column="26" selection-start-line="18" selection-start-column="26" selection-end-line="18" selection-end-column="26" />
436
+        </state>
437
+      </provider>
438
+    </entry>
439
+    <entry file="file://$PROJECT_DIR$/../github.com/go-redis/redis/command.go">
440
+      <provider selected="true" editor-type-id="text-editor">
441
+        <state relative-caret-position="182">
442
+          <caret line="577" column="22" selection-start-line="577" selection-start-column="22" selection-end-line="577" selection-end-column="22" />
443
+        </state>
444
+      </provider>
445
+    </entry>
446
+    <entry file="file://$PROJECT_DIR$/../github.com/go-redis/redis/commands.go">
447
+      <provider selected="true" editor-type-id="text-editor">
448
+        <state relative-caret-position="164">
449
+          <caret line="753" column="18" selection-start-line="753" selection-start-column="18" selection-end-line="753" selection-end-column="18" />
450
+        </state>
451
+      </provider>
452
+    </entry>
453
+    <entry file="file://$PROJECT_DIR$/controllers/mpwechat/mpwechat_controller.go">
454
+      <provider selected="true" editor-type-id="text-editor">
455
+        <state relative-caret-position="110">
456
+          <caret line="13" column="95" selection-start-line="13" selection-start-column="82" selection-end-line="13" selection-end-column="95" />
457
+        </state>
458
+      </provider>
459
+    </entry>
460
+    <entry file="file://$PROJECT_DIR$/service/article_service/article_category_service.go">
461
+      <provider selected="true" editor-type-id="text-editor">
462
+        <state relative-caret-position="-797">
463
+          <caret line="192" column="10" selection-start-line="192" selection-start-column="10" selection-end-line="192" selection-end-column="10" />
464
+        </state>
465
+      </provider>
466
+    </entry>
467
+    <entry file="file://$PROJECT_DIR$/controllers/global/open_wechat_controller.go">
468
+      <provider selected="true" editor-type-id="text-editor">
469
+        <state relative-caret-position="23">
470
+          <caret line="38" column="49" selection-start-line="38" selection-start-column="30" selection-end-line="38" selection-end-column="49" />
471
+        </state>
472
+      </provider>
473
+    </entry>
474
+    <entry file="file://$PROJECT_DIR$/jobcron/open_wechat_job.go">
475
+      <provider selected="true" editor-type-id="text-editor">
476
+        <state relative-caret-position="64">
477
+          <caret line="109" column="68" selection-start-line="109" selection-start-column="47" selection-end-line="109" selection-end-column="68" />
478
+        </state>
479
+      </provider>
480
+    </entry>
481
+    <entry file="file://$PROJECT_DIR$/controllers/article/article_controller.go">
482
+      <provider selected="true" editor-type-id="text-editor">
483
+        <state relative-caret-position="-792" />
484
+      </provider>
485
+    </entry>
486
+    <entry file="file://$PROJECT_DIR$/service/db.go">
487
+      <provider selected="true" editor-type-id="text-editor">
488
+        <state relative-caret-position="1122">
489
+          <caret line="57" selection-start-line="57" selection-end-line="57" />
490
+        </state>
491
+      </provider>
492
+    </entry>
493
+    <entry file="file://$PROJECT_DIR$/service/admin_service/verify_login_token_service.go">
494
+      <provider selected="true" editor-type-id="text-editor">
495
+        <state relative-caret-position="440">
496
+          <caret line="20" column="75" selection-start-line="20" selection-start-column="61" selection-end-line="20" selection-end-column="75" />
497
+        </state>
498
+      </provider>
499
+    </entry>
500
+    <entry file="file://$PROJECT_DIR$/controllers/micro/router_collector.go">
501
+      <provider selected="true" editor-type-id="text-editor">
502
+        <state relative-caret-position="44">
503
+          <caret line="2" column="24" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
504
+        </state>
505
+      </provider>
506
+    </entry>
507
+    <entry file="file://$PROJECT_DIR$/controllers/base_controller.go">
508
+      <provider selected="true" editor-type-id="text-editor">
509
+        <state relative-caret-position="-317">
510
+          <caret line="8" selection-start-line="8" selection-end-line="8" />
511
+        </state>
512
+      </provider>
513
+    </entry>
514
+    <entry file="file://$PROJECT_DIR$/controllers/site/router_collector.go">
515
+      <provider selected="true" editor-type-id="text-editor">
516
+        <state relative-caret-position="66">
517
+          <caret line="3" column="15" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="15" />
518
+        </state>
519
+      </provider>
520
+    </entry>
521
+    <entry file="file://$PROJECT_DIR$/controllers/base_api_controller.go">
522
+      <provider selected="true" editor-type-id="text-editor">
523
+        <state relative-caret-position="137">
524
+          <caret line="8" column="5" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="5" />
525
+        </state>
526
+      </provider>
527
+    </entry>
528
+    <entry file="file://$PROJECT_DIR$/service/member_service/models.go">
529
+      <provider selected="true" editor-type-id="text-editor">
530
+        <state relative-caret-position="110">
531
+          <caret line="7" column="23" selection-start-line="7" selection-start-column="11" selection-end-line="7" selection-end-column="23" />
532
+        </state>
533
+      </provider>
534
+    </entry>
535
+    <entry file="file://$PROJECT_DIR$/controllers/members/members_controller.go">
536
+      <provider selected="true" editor-type-id="text-editor">
537
+        <state relative-caret-position="44">
538
+          <caret line="2" column="7" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
539
+        </state>
540
+      </provider>
541
+    </entry>
542
+    <entry file="file://$PROJECT_DIR$/models/user_customer_models.go">
543
+      <provider selected="true" editor-type-id="text-editor">
544
+        <state relative-caret-position="44">
545
+          <caret line="2" column="17" selection-start-line="2" selection-start-column="5" selection-end-line="2" selection-end-column="17" />
546
+        </state>
547
+      </provider>
548
+    </entry>
549
+    <entry file="file://$PROJECT_DIR$/service/member_service/member_service.go">
550
+      <provider selected="true" editor-type-id="text-editor">
551
+        <state relative-caret-position="180">
552
+          <caret line="187" selection-start-line="187" selection-end-line="187" />
553
+        </state>
554
+      </provider>
555
+    </entry>
556
+    <entry file="file://$PROJECT_DIR$/service/wechat_service/open_wechat_service.go">
557
+      <provider selected="true" editor-type-id="text-editor">
558
+        <state relative-caret-position="90">
559
+          <caret line="463" column="22" selection-start-line="463" selection-start-column="5" selection-end-line="463" selection-end-column="22" />
560
+        </state>
561
+      </provider>
562
+    </entry>
563
+    <entry file="file://$PROJECT_DIR$/controllers/mpwechat/menu_controller.go">
564
+      <provider selected="true" editor-type-id="text-editor">
565
+        <state relative-caret-position="185">
566
+          <caret line="219" column="42" selection-start-line="219" selection-start-column="25" selection-end-line="219" selection-end-column="42" />
567
+        </state>
568
+      </provider>
569
+    </entry>
570
+    <entry file="file://$PROJECT_DIR$/controllers/staff/staff_controller.go">
571
+      <provider selected="true" editor-type-id="text-editor">
572
+        <state relative-caret-position="-1746">
573
+          <caret line="141" column="62" selection-start-line="141" selection-start-column="47" selection-end-line="141" selection-end-column="62" />
574
+        </state>
575
+      </provider>
576
+    </entry>
577
+    <entry file="file://$PROJECT_DIR$/service/staff_service/staff_manager_service.go">
578
+      <provider selected="true" editor-type-id="text-editor">
579
+        <state relative-caret-position="242">
580
+          <caret line="15" column="17" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="17" />
581
+        </state>
582
+      </provider>
583
+    </entry>
584
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
585
+      <provider selected="true" editor-type-id="text-editor">
586
+        <state relative-caret-position="22">
587
+          <caret line="33" column="28" selection-start-line="33" selection-start-column="28" selection-end-line="33" selection-end-column="28" />
588
+        </state>
589
+      </provider>
590
+    </entry>
591
+    <entry file="file://$PROJECT_DIR$/models/article_models.go">
592
+      <provider selected="true" editor-type-id="text-editor">
593
+        <state relative-caret-position="110">
594
+          <caret line="50" column="11" selection-start-line="50" selection-start-column="4" selection-end-line="50" selection-end-column="11" />
595
+        </state>
596
+      </provider>
597
+    </entry>
598
+    <entry file="file://$PROJECT_DIR$/models/site_models.go">
599
+      <provider selected="true" editor-type-id="text-editor">
600
+        <state relative-caret-position="5874">
601
+          <caret line="267" column="67" selection-start-line="267" selection-start-column="4" selection-end-line="267" selection-end-column="67" />
602
+        </state>
603
+      </provider>
604
+    </entry>
605
+    <entry file="file://$PROJECT_DIR$/models/activity_models.go">
606
+      <provider selected="true" editor-type-id="text-editor">
607
+        <state relative-caret-position="660">
608
+          <caret line="30" column="95" selection-start-line="30" selection-start-column="95" selection-end-line="30" selection-end-column="95" />
609
+        </state>
610
+      </provider>
611
+    </entry>
612
+    <entry file="file://$PROJECT_DIR$/service/site_service/site_microwebsite_service.go">
613
+      <provider selected="true" editor-type-id="text-editor">
614
+        <state relative-caret-position="108">
615
+          <caret line="766" column="5" selection-start-line="766" selection-start-column="5" selection-end-line="766" selection-end-column="5" />
616
+        </state>
617
+      </provider>
618
+    </entry>
619
+    <entry file="file://$PROJECT_DIR$/controllers/site/site_controller.go">
620
+      <provider selected="true" editor-type-id="text-editor">
621
+        <state relative-caret-position="-4633">
622
+          <caret line="4055" column="55" selection-start-line="4055" selection-start-column="37" selection-end-line="4055" selection-end-column="55" />
623
+        </state>
624
+      </provider>
625
+    </entry>
626
+    <entry file="file://$PROJECT_DIR$/service/micro_service/micro_service.go">
627
+      <provider selected="true" editor-type-id="text-editor">
628
+        <state relative-caret-position="156">
629
+          <caret line="50" column="26" selection-start-line="50" selection-start-column="5" selection-end-line="50" selection-end-column="26" />
630
+        </state>
631
+      </provider>
632
+    </entry>
633
+    <entry file="file://$PROJECT_DIR$/controllers/micro/micro_controller.go">
634
+      <provider selected="true" editor-type-id="text-editor">
635
+        <state relative-caret-position="172">
636
+          <caret line="187" column="42" selection-start-line="187" selection-start-column="42" selection-end-line="187" selection-end-column="42" />
186 637
         </state>
187 638
       </provider>
188 639
     </entry>
189 640
     <entry file="file://$PROJECT_DIR$/conf/app.conf">
190 641
       <provider selected="true" editor-type-id="text-editor">
191
-        <state relative-caret-position="241">
192
-          <caret line="121" lean-forward="true" selection-start-line="81" selection-end-line="121" />
642
+        <state relative-caret-position="44">
643
+          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
193 644
         </state>
194 645
       </provider>
195 646
     </entry>

+ 2 - 2
conf/app.conf View File

@@ -39,8 +39,8 @@ key = "e4SHrkiZu0pQEwVoGBapDBTf9N1Q6MxV"
39 39
 appsecret="61ee2e6268497d5aa9de0b0187c39aea"
40 40
 
41 41
 [prod]
42
-httpdomain = http://api.jk.kuyicloud.com
43
-sso_domain = http://sso.kuyicloud.com
42
+httpdomain = http://api.scrm.kuyicloud.com
43
+sso_domain = https://sso.kuyicloud.com
44 44
 front_end_domain = "http://jk.kuyicloud.com/#"
45 45
 
46 46
 openwechattoken = dwqofqon2e12en2o

+ 2 - 1
controllers/global/open_wechat_controller.go View File

@@ -264,6 +264,7 @@ func (c *OpenWechatAPIController) Authorization() {
264 264
 	}
265 265
 
266 266
 	code, err := wechat_service.GetReqPreAuthCode()
267
+	fmt.Println("code是什么",code,"错误",err)
267 268
 	if err != nil {
268 269
 		c.ServeFailJsonSend(enums.ErrorCodeDataException, "获取授权URL失败:("+err.Error()+")")
269 270
 		return
@@ -271,7 +272,7 @@ func (c *OpenWechatAPIController) Authorization() {
271 272
 
272 273
 	uri := fmt.Sprintf(beego.AppConfig.String("httpdomain")+"/openwechat/mp/authorizerinfo/%d/%d/%s", id, vtime, vcode)
273 274
 	url := "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&auth_type=1&no_scan=1&component_appid=" + beego.AppConfig.String("openwechatappid") + "&pre_auth_code=" + code + "&redirect_uri=" + uri + "&auth_type=1#wechat_redirect"
274
-
275
+     fmt.Println("url是设么东西",url)
275 276
 	c.Data["url"] = url
276 277
 	c.TplName = "openwechat/authorization.html"
277 278
 

+ 2 - 0
controllers/members/members_controller.go View File

@@ -112,6 +112,8 @@ func (c *MembersAPIController) GetAllMembers() {
112 112
 
113 113
 	adminUserInfo := c.GetAdminUserInfo()
114 114
 	members, err := member_service.GetAllMemberList(adminUserInfo.CurrentOrgId)
115
+	fmt.Println("members是什么",members)
116
+	fmt.Println("资讯管理错误是什么",err)
115 117
 	if err != nil {
116 118
 		c.ServeFailJsonSend(enums.ErrorCodeDataException, "获取列表失败")
117 119
 		return

+ 283 - 0
controllers/micro/micro_controller.go View File

@@ -0,0 +1,283 @@
1
+package micro
2
+
3
+import (
4
+	"SCRM/service/micro_service"
5
+	"fmt"
6
+	"github.com/astaxie/beego"
7
+	"SCRM/enums"
8
+)
9
+
10
+func microRouters(){
11
+	beego.Router("/api/site/getdata",&Micro{},"Get:GetData")
12
+	beego.Router("/api/site/getdatatwo",&Micro{},"Get:GetDatatwo")
13
+	beego.Router("/api/site/getdatathree",&Micro{},"Get:GetOfficeDetail")
14
+	beego.Router("/api/site/getdatafour",&Micro{},"Get:GetDoctorDetail")
15
+	beego.Router("/api/site/getdatafive",&Micro{},"Get:GetOfficEnviromentDetail")
16
+	beego.Router("/api/site/getarticlelist",&Micro{},"Get:GetArticlelist")
17
+	beego.Router("/api/site/getactivities",&Micro{},"Get:GetActivities")
18
+	beego.Router("/api/site/getdatasix",&Micro{},"Get:GetArticlistDetail")
19
+	beego.Router("/api/site/getdataseven",&Micro{},"Get:GetActivitesDetail")
20
+	beego.Router("/api/site/getdefalutnavigationdata",&Micro{},"Get:GetDefalutNavigationData")
21
+	beego.Router("/api/site/getdataeight",&Micro{},"Get:GetOrderData")
22
+	beego.Router("/api/site/getdatanight",&Micro{},"Get:GetContactWay")
23
+	beego.Router("/api/site/singleactivitinfo",&Micro{},"Get:GetActivitDetail")
24
+	beego.Router("/api/site/singlearticleinfo",&Micro{},"Get:GetArticlesDetail")
25
+   beego.Router("/api/site/singledoctorinfo",&Micro{},"Get:GetDoctorInfo")
26
+
27
+}
28
+
29
+type Micro struct {
30
+     beego.Controller
31
+     //controllers.BaseAPIController
32
+}
33
+func (this *Micro) ServeFailJsonSend(code int, msg string) {
34
+	this.Data["json"] = enums.MakeFailResponseJSON(msg, code)
35
+	this.ServeJSON()
36
+}
37
+
38
+func (this *Micro) ServeSuccessJSON(data map[string]interface{}) {
39
+	this.Data["json"] = enums.MakeSuccessResponseJSON(data)
40
+	this.ServeJSON()
41
+}
42
+
43
+
44
+func (this *Micro) GetData(){
45
+	orgid, _ := this.GetInt64("orgid")
46
+	fmt.Println("小明id",orgid)
47
+	model, err := micro_service.GetData(orgid)
48
+	fmt.Println("model是什么",model)
49
+	fmt.Println("err",err)
50
+	if err !=nil{
51
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
52
+		return
53
+	}
54
+	this.ServeSuccessJSON(map[string]interface{}{
55
+		"patientModels":model,
56
+	})
57
+}
58
+
59
+func (this *Micro) GetDatatwo()  {
60
+	fmt.Println("获取医院详情")
61
+	id, err := this.GetInt64("id")
62
+	fmt.Println(err)
63
+	fmt.Println("id是什么",id)
64
+	orgid, _ := this.GetInt64("orgid")
65
+	fmt.Println("机构id",orgid)
66
+	hospital, err := micro_service.QueryHispitalDetail(orgid, id)
67
+	if err !=nil{
68
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
69
+		 return
70
+		 }
71
+		 this.ServeSuccessJSON(map[string]interface{}{
72
+		 	"hospital":hospital,
73
+		 })
74
+}
75
+
76
+func (this *Micro) GetOfficeDetail()  {
77
+	id, err := this.GetInt64("id")
78
+	fmt.Println(err)
79
+	fmt.Println("id是什么",id)
80
+	orgid, _ := this.GetInt64("orgid")
81
+	fmt.Println("机构id",orgid)
82
+	offices, err := micro_service.GetOfficeDetail(orgid, id)
83
+		if err !=nil{
84
+			this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
85
+			return
86
+		}
87
+		this.ServeSuccessJSON(map[string]interface{}{
88
+			"offices":offices,
89
+		})
90
+
91
+}
92
+
93
+func (this *Micro) GetDoctorDetail()  {
94
+	id, err := this.GetInt64("id")
95
+	fmt.Println(err)
96
+	fmt.Println("id是什么",id)
97
+	orgid, _ := this.GetInt64("orgid")
98
+	fmt.Println("机构id",orgid)
99
+	editdoctor, err := micro_service.GetDoctorDetail(orgid, id)
100
+		if err !=nil{
101
+			this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
102
+			return
103
+		}
104
+		this.ServeSuccessJSON(map[string]interface{}{
105
+			"editdoctor":editdoctor,
106
+		})
107
+
108
+}
109
+
110
+func (this *Micro) GetOfficEnviromentDetail()  {
111
+	id, err := this.GetInt64("id")
112
+	fmt.Println(err)
113
+	fmt.Println("id是什么",id)
114
+	orgid, _ := this.GetInt64("orgid")
115
+	fmt.Println("机构id",orgid)
116
+	offenvironment, err := micro_service.GetOfficEnviromentDetail(orgid, id)
117
+	fmt.Println("错误",err)
118
+	fmt.Println("offenvironment",offenvironment)
119
+	if err !=nil{
120
+			this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
121
+			return
122
+		}
123
+		this.ServeSuccessJSON(map[string]interface{}{
124
+			"offenvironment":offenvironment,
125
+		})
126
+}
127
+
128
+func (this *Micro) GetArticlelist()  {
129
+	//adminUserInfo := this.GetAdminUserInfo()
130
+	//userOrgID := int64(adminUserInfo.CurrentOrgId)
131
+	//fmt.Println("机构id",userOrgID)
132
+	orgid, _ := this.GetInt64("orgid")
133
+	//micro_service.GetArticlelistlimit(orgid)
134
+	articlelist, err := micro_service.GetlastLimit(orgid)
135
+	articlelists, err := micro_service.GetAllArticeList(orgid,articlelist.Number)
136
+	fmt.Println("文章列表",articlelists)
137
+	fmt.Println("错误",err)
138
+	if err !=nil{
139
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
140
+		return
141
+	}
142
+	this.ServeSuccessJSON(map[string]interface{}{
143
+		"articlelists":articlelists,
144
+	})
145
+}
146
+
147
+func (this *Micro) GetActivities()  {
148
+	orgid, _ := this.GetInt64("orgid")
149
+	fmt.Println("活动id",orgid)
150
+	//addactivity, err := micro_service.GetActivitiesById(orgid)
151
+	addactivity, err := micro_service.GetLastActivitiesLast(orgid)
152
+	activity, err := micro_service.GetAllActivities(orgid,addactivity.Number)
153
+	if err !=nil{
154
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "更改数据失败")
155
+		return
156
+	}
157
+	this.ServeSuccessJSON(map[string]interface{}{
158
+		"activity":activity,
159
+	})
160
+}
161
+
162
+func (this *Micro) GetArticlistDetail()  {
163
+	id, _ := this.GetInt64("id")
164
+	fmt.Println("id是设么",id)
165
+	orgid, _ := this.GetInt64("orgid")
166
+	fmt.Println("文章id",orgid)
167
+	articlelist, err := micro_service.GetArticlelistById(id, orgid)
168
+	fmt.Println(articlelist,err)
169
+	//fmt.Println(err)
170
+	articlelists, err := micro_service.GetAllArticles(orgid, articlelist.Number)
171
+	if err !=nil{
172
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
173
+		return
174
+	}
175
+	this.ServeSuccessJSON(map[string]interface{}{
176
+		"articlelists":articlelists,
177
+	})
178
+}
179
+
180
+func (this *Micro) GetActivitesDetail()  {
181
+	id, _ := this.GetInt64("id")
182
+	fmt.Println("id是设么",id)
183
+	orgid, _ := this.GetInt64("orgid")
184
+	fmt.Println("活动id",orgid)
185
+	//addactivity, err := micro_service.GetAllActivitiById(id, orgid)
186
+	//	fmt.Println("err",err)
187
+	addactivity, err := micro_service.GetLastActivitiesLast(orgid)
188
+	activity, err := micro_service.GetAllActivities(orgid,addactivity.Number)
189
+	if err !=nil{
190
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
191
+		return
192
+	}
193
+	this.ServeSuccessJSON(map[string]interface{}{
194
+		"activity":activity,
195
+	})
196
+}
197
+
198
+
199
+func (this *Micro) GetDefalutNavigationData()  {
200
+	orgid, _ := this.GetInt64("orgid")
201
+	fmt.Println("活动id",orgid)
202
+	navigation, err := micro_service.GetDefalutNavigationData(orgid)
203
+	if err !=nil{
204
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
205
+		return
206
+	}
207
+	this.ServeSuccessJSON(map[string]interface{}{
208
+		"navigation":navigation,
209
+	})
210
+}
211
+
212
+
213
+func (this *Micro) GetOrderData(){
214
+	orgid, _ := this.GetInt64("orgid")
215
+	fmt.Println("活动id",orgid)
216
+	ordmodel, err := micro_service.GetOrederModel(orgid)
217
+	fmt.Println("ordemodel是社没什么",ordmodel)
218
+	if err !=nil{
219
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
220
+		return
221
+	}
222
+	this.ServeSuccessJSON(map[string]interface{}{
223
+		"ordmodel":ordmodel,
224
+	})
225
+}
226
+
227
+func  (this *Micro) GetContactWay(){
228
+	orgid, _ := this.GetInt64("orgid")
229
+	fmt.Println("联系方式id",orgid)
230
+	connect, err := micro_service.GetAllConnecway(orgid)
231
+	if err !=nil{
232
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
233
+		return
234
+	}
235
+	this.ServeSuccessJSON(map[string]interface{}{
236
+		"connect":connect,
237
+	})
238
+}
239
+
240
+func  (this *Micro) GetActivitDetail()  {
241
+	id, _ := this.GetInt64("id")
242
+	fmt.Println("活动id",id)
243
+	orgid, _ := this.GetInt64("orgid")
244
+	fmt.Println("机构id",orgid)
245
+	activity, err := micro_service.GetActivitDetail(id, orgid)
246
+	if err !=nil{
247
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
248
+		return
249
+	}
250
+	this.ServeSuccessJSON(map[string]interface{}{
251
+		"activity":activity,
252
+	})
253
+}
254
+
255
+func  (this *Micro) GetArticlesDetail()  {
256
+	id, _ := this.GetInt64("id")
257
+	fmt.Println("文章id",id)
258
+	orgid, _ := this.GetInt64("orgid")
259
+	fmt.Println("机构id",orgid)
260
+	articles, err := micro_service.GetArticlesDetail(id, orgid)
261
+	if err !=nil{
262
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
263
+		return
264
+	}
265
+	this.ServeSuccessJSON(map[string]interface{}{
266
+		"articles":articles,
267
+	})
268
+}
269
+
270
+func (this *Micro) GetDoctorInfo()  {
271
+	id, _ := this.GetInt64("id")
272
+	fmt.Println("医生id",id)
273
+	orgid, _ := this.GetInt64("orgid")
274
+	fmt.Println("机构id",orgid)
275
+	editdoctor, err := micro_service.GetDoctorInfo(id, orgid)
276
+	if err !=nil{
277
+		this.ServeFailJsonSend(enums.ErrorCodeDataException, "删除回复成功")
278
+		return
279
+	}
280
+	this.ServeSuccessJSON(map[string]interface{}{
281
+		"editdoctor":editdoctor,
282
+	})
283
+}

+ 5 - 0
controllers/micro/router_collector.go View File

@@ -0,0 +1,5 @@
1
+package micro
2
+
3
+func RegisterRouters() {
4
+	microRouters()
5
+}

+ 4 - 0
controllers/mpwechat/menu_controller.go View File

@@ -10,6 +10,7 @@ import (
10 10
 	"encoding/json"
11 11
 
12 12
 	"github.com/astaxie/beego"
13
+	"fmt"
13 14
 )
14 15
 
15 16
 func MpMenusCtlRegistRouters() {
@@ -107,6 +108,8 @@ func (c *MpMenusAPIController) GetMenus() {
107 108
 func (c *MpMenusAPIController) SaveMenus() {
108 109
 	adminUserInfo := c.GetAdminUserInfo()
109 110
 	authorization, err := wechat_service.GetAuthorizationByOrgID(adminUserInfo.CurrentOrgId)
111
+	fmt.Println("authorization是什么",authorization)
112
+	fmt.Println("错误",err)
110 113
 	if err != nil {
111 114
 		c.ServeFailJsonSend(enums.ErrorCodeDataException, "保存菜单失败:("+err.Error()+")")
112 115
 		return
@@ -215,6 +218,7 @@ func (c *MpMenusAPIController) SaveMenus() {
215 218
 		return
216 219
 	}
217 220
 	err = wechat_service.SendMpWechatMenus(authorization.AuthorizerAccessToken, buttonFileds)
221
+	fmt.Println("公众号错误是什么",err)
218 222
 	if err != nil {
219 223
 		c.ServeFailJsonSend(enums.ErrorCodeDBUpdate, "保存菜单成功,但发布菜单到公众号失败:("+err.Error()+")")
220 224
 		return

+ 1 - 0
controllers/mpwechat/mpwechat_controller.go View File

@@ -42,6 +42,7 @@ func (c *MpWechatAPIController) GetAuthUrl() {
42 42
 	adminUserInfo := c.GetAdminUserInfo()
43 43
 
44 44
 	vcode, vtime := utils.GetOrgIdCode(adminUserInfo.CurrentOrgId, 0)
45
+
45 46
 	url := fmt.Sprintf("%s%s?id=%d&vcode=%s&vtime=%d", beego.AppConfig.String("httpdomain"), "/openwechat/mp/authorization", adminUserInfo.CurrentOrgId, vtime, vcode)
46 47
 
47 48
 	returnData := make(map[string]interface{}, 0)

File diff suppressed because it is too large
+ 852 - 69
controllers/site/site_controller.go


+ 1 - 0
jobcron/open_wechat_job.go View File

@@ -101,6 +101,7 @@ func RequestComponentAccessToken() {
101 101
 	}
102 102
 
103 103
 	err = redisClient.Set("sgj_patient:component_access_token", access_token.ComponentAccessToken, time.Second*7000).Err()
104
+	fmt.Println("err错误是哦",err)
104 105
 	if err != nil {
105 106
 		utils.ErrorLog("redis set failed:%s", err)
106 107
 		return

+ 1 - 1
models/activity_models.go View File

@@ -24,7 +24,7 @@ type Activity struct {
24 24
 	IsRecommend      int8   `gorm:"column:is_recommend;" json:"is_recommend"`            // 0:未推荐;1:已推荐
25 25
 	CreateTime       int64  `gorm:"column:ctime" json:"-"`                               // 创建时间
26 26
 	ModifyTime       int64  `gorm:"column:mtime" json:"-"`                               // 修改时间
27
-	UserOrgId        int64  `gorm:"column:user_org_id" json:"-"`                         // 所属发布机构 ID
27
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
28 28
 	UserAppId        int64  `gorm:"column:user_app_id" json:"-"`                         // 所属发布应用 ID
29 29
 	CommentNum       int    `gorm:"column:comment_num;" json:"comment_num"`              // 评论数
30 30
 	StarNum          int    `gorm:"column:star_num" json:"star_num"`                     // 点赞书

+ 6 - 3
models/site_models.go View File

@@ -28,11 +28,11 @@ type SgjPatientModel struct {
28 28
 	ModeType int64 `gorm:"column:mode_type" json:"mode_type" form:"mode_type"`
29 29
 	Hospitals     SgjPatientHospital `gorm:"ForeignKey:Modleid"`
30 30
 	Offices     SgjPatientOffices `gorm:"ForeignKey:Modleid"`
31
-	Doctors     SgjPatientDocinfo `gorm:"ForeignKey:Modelid"`
31
+	//Doctors     SgjPatientDocinfo `gorm:"ForeignKey:Modelid"`
32 32
 	OfficeEnviroment   SgjPatientOffenvironment  `gorm:"ForeignKey:Modelid"`
33 33
 	Editdoctor   []SgjPatientEditdoctor  `gorm:"ForeignKey:Modleid"`
34
-	Rotation     SgjPatientRotation  `gorm:"ForeignKey:ModelId"`
35
-	Macnavigation  SgjPatientMacnavigation `gorm:"ForeignKey:Modeid"`
34
+	//Rotation     SgjPatientRotation  `gorm:"ForeignKey:ModelId"`
35
+	//Macnavigation  SgjPatientMacnavigation `gorm:"ForeignKey:Modeid"`
36 36
 	Addactivity  SgjPatientAddactivity `gorm:"ForeignKey:Modeid"`
37 37
 	Articlelist  SgjPatientArticlelist `gorm:"ForeignKey:Modeid"`
38 38
 	Editmargin  []SgjPatientEditmargin `gorm:"ForeignKey:Modeid"`
@@ -131,6 +131,7 @@ type SgjPatientEditdoctor struct {
131 131
 	Status int64 `gorm:"column:status" json:"status" form:"status"`
132 132
 	DocName string `gorm:"column:doc_name" json:"doc_name" form:"doc_name"`
133 133
 	Modleid int64 `gorm:"column:modleid" json:"modleid" form:"modleid"`
134
+	ImgShow int64 `gorm:"column:img_show" json:"img_show" form:"img_show"`
134 135
 }
135 136
 
136 137
 func (SgjPatientEditdoctor) TableName() string  {
@@ -374,6 +375,8 @@ type SgjPatientEditpiclink struct {
374 375
 	Linkid int64 `gorm:"column:linkid" json:"linkid" form:"linkid"`
375 376
 }
376 377
 
378
+
379
+
377 380
 func (SgjPatientEditpiclink) TableName() string  {
378 381
 
379 382
 	return "sgj_patient_editpiclink"

+ 26 - 26
models/user_customer_models.go View File

@@ -1,33 +1,33 @@
1 1
 package models
2 2
 
3 3
 type UserCustomer struct {
4
-	ID              int64  `gorm:"column:id" json:"id" form:"id"`
5
-	UserOrgId       int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
6
-	UserId          int64  `gorm:"column:user_id" json:"user_id" form:"user_id"`
7
-	Mobile          string `gorm:"column:mobile" json:"mobile" form:"mobile"`
8
-	Name            string `gorm:"column:name" json:"name" form:"name"`
9
-	Gender          int64  `gorm:"column:gender" json:"gender" form:"gender"`
10
-	ProvinceId      int64  `gorm:"column:province_id" json:"province_id" form:"province_id"`
11
-	CityId          int64  `gorm:"column:city_id" json:"city_id" form:"city_id"`
12
-	Address         string `gorm:"column:address" json:"address" form:"address"`
13
-	Birthday        int64  `gorm:"column:birthday" json:"birthday" form:"birthday"`
14
-	TreatType       int64  `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
15
-	Relationship    int64  `gorm:"column:relationship" json:"relationship" form:"relationship"`
16
-	IllnessId       int64  `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
17
-	WechatOpenid    string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
18
-	Membership      int64  `gorm:"column:membership" json:"membership" form:"membership"`
19
-	Sources         int64  `gorm:"column:sources" json:"sources" form:"sources"`
20
-	Status          int64  `gorm:"column:status" json:"status" form:"status"`
21
-	CreatedTime     int64  `gorm:"column:created_time" json:"created_time" form:"created_time"`
22
-	UpdatedTime     int64  `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
23
-	Avatar          string `gorm:"column:avatar" json:"avatar" form:"avatar"`
24
-	WechatUnionid   string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
25
-	Remark          string `gorm:"column:remark" json:"remark" form:"remark"`
4
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
5
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
6
+	UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
7
+	Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
8
+	Name string `gorm:"column:name" json:"name" form:"name"`
9
+	Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
10
+	ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
11
+	CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
12
+	Address string `gorm:"column:address" json:"address" form:"address"`
13
+	Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
14
+	TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
15
+	Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
16
+	IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
17
+	WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
18
+	Membership int64 `gorm:"column:membership" json:"membership" form:"membership"`
19
+	Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
20
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
21
+	CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
22
+	UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
23
+	Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
24
+	WechatUnionid string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
25
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
26 26
 	MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
27
-	YzUid           int64  `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
28
-	Tttime          int64  `gorm:"column:tttime" json:"tttime" form:"tttime"`
29
-	IllDate         int64  `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
30
-	DistrictId      int64  `gorm:"column:district_id" json:"district_id" form:"district_id"`
27
+	YzUid int64 `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
28
+	Tttime int64 `gorm:"column:tttime" json:"tttime" form:"tttime"`
29
+	IllDate int64 `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
30
+	DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
31 31
 }
32 32
 
33 33
 func (UserCustomer) TableName() string {

+ 7 - 2
routers/router.go View File

@@ -16,17 +16,21 @@ import (
16 16
 	"github.com/astaxie/beego"
17 17
 	"github.com/astaxie/beego/plugins/cors"
18 18
 	"SCRM/controllers/site"
19
+	"SCRM/controllers/micro"
20
+	"github.com/astaxie/beego/context"
19 21
 )
20 22
 
21 23
 func init() {
22 24
 	beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
23
-		AllowOrigins:     []string{"http://jk.kuyicloud.com", "http://localhost:8090", "http://test1.sgjyun.com", "https://www.ucpaas.com"},
25
+		AllowOrigins:     []string{"http://jk.kuyicloud.com", "http://localhost:8090","http://localhost:8091", "http://test1.sgjyun.com", "https://www.ucpaas.com","http://microweb.kuyicloud.com"},
24 26
 		AllowMethods:     []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
25 27
 		AllowHeaders:     []string{"Origin", "Authorization", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
26 28
 		ExposeHeaders:    []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
27 29
 		AllowCredentials: true,
28 30
 	}))
29
-
31
+	beego.Get("/MP_verify_JiWyx0d2U4nzjGX5.txt", func(ctx *context.Context) {
32
+		ctx.Output.Body([]byte("JiWyx0d2U4nzjGX5"))
33
+	})
30 34
 	global.RegisterRouters()
31 35
 	admin_user.RegisterRouters()
32 36
 	login.RegisterRouters()
@@ -39,4 +43,5 @@ func init() {
39 43
 	staff.RegisterRouters()
40 44
 	kefu.RegisterRouters()
41 45
 	site.RegisterRouters()
46
+	micro.RegisterRouters()
42 47
 }

+ 2 - 0
service/member_service/member_service.go View File

@@ -8,6 +8,7 @@ import (
8 8
 	"time"
9 9
 
10 10
 	"github.com/jinzhu/gorm"
11
+	"fmt"
11 12
 )
12 13
 
13 14
 func GetMemberList(orgID, page, limit, level, source, tag, startTime, endTime int64, isStartTime, isEndTime bool, searchKey string) (members []*Members, total int64, err error) {
@@ -187,6 +188,7 @@ func GetAllMemberList(orgID int64) (members []*Members, err error) {
187 188
 
188 189
 	err = db.Order("c.created_time desc").
189 190
 		Select("c.id, c.user_org_id, c.user_id, c.mobile, c.name, c.gender, c.province_id, c.city_id, c.address, c.birthday, c.treat_type, c.relationship, c.illness_id, c.wechat_openid, c.membership, c.sources, c.status, c.created_time, c.updated_time, c.avatar, c.wechat_unionid, c.remark, c.medical_diagnose, c.yz_uid, c.ill_date, c.district_id").Find(&members).Error
191
+    fmt.Println("错误是什么",err)
190 192
 	if err != nil {
191 193
 		return
192 194
 	}

+ 143 - 0
service/micro_service/micro_service.go View File

@@ -0,0 +1,143 @@
1
+package micro_service
2
+
3
+import (
4
+	"SCRM/models"
5
+	"SCRM/service"
6
+	"fmt"
7
+)
8
+
9
+func GetData(orgid int64)(model []*models.SgjPatientModel,err error)  {
10
+	db := service.PatientReadDB().Table("sgj_patient_model as m").Where(" m.status = ?", 1)
11
+	fmt.Println("db是什么?",db)
12
+	if(orgid > 0){
13
+		db = db.Where("user_org_id = ? ", orgid)
14
+	}
15
+	err = db.Preload("Hospitals").Preload("Offices").Preload("OfficeEnviroment").
16
+		Preload("Editdoctor").Preload("Editmargin").Preload("Enviroimages").Preload("PatientEditpiclink").
17
+		Select("m.id,m.title,m.sort,m.ctime,m.mtime,m.user_org_id,m.status,m.mode_type").Order("sort").Find(&model).Error
18
+	return
19
+}
20
+
21
+func GetArticlelist(orgid int64)(models.SgjPatientArticlelist,error)  {
22
+	articlelist := models.SgjPatientArticlelist{}
23
+	err := service.PatientReadDB().Where("user_org_id = ? AND Status = ?", orgid, 1).Last(&articlelist).Error
24
+	fmt.Println("错误",err)
25
+	return articlelist,err
26
+}
27
+
28
+//func GetArticlelistlimit(orgid int64)(models.SgjPatientArticlelist,error)  {
29
+//	articlelist := models.SgjPatientArticlelist{}
30
+//	service.PatientReadDB().Model(&articlelist).Where("")
31
+//}
32
+
33
+func GetlastLimit(orgid int64)(models.SgjPatientArticlelist,error)   {
34
+	articlelist := models.SgjPatientArticlelist{}
35
+	err := service.PatientReadDB().Model(&articlelist).Where("user_org_id = ? AND status = ?", orgid, 1).Last(&articlelist).Error
36
+	return articlelist,err
37
+}
38
+
39
+func GetAllArticeList(orgid int64,limit int64)(articles []models.Articles,err error)  {
40
+	err = service.PatientReadDB().Model(&articles).Where("user_org_id = ? AND status = ?", orgid, 1).Limit(limit).Find(&articles).Error
41
+	return articles,err
42
+}
43
+
44
+func GetActivitiesById(orgid int64)(models.SgjPatientAddactivity,error)  {
45
+	addactivity := models.SgjPatientAddactivity{}
46
+	err := service.PatientReadDB().Where("user_org_id = ? AND status = ?", orgid, 1).Last(&addactivity).Error
47
+	fmt.Println("查询活动列表错误",err)
48
+	return addactivity,err
49
+}
50
+
51
+func GetLastActivitiesLast(orgid int64)(models.SgjPatientAddactivity,error)  {
52
+	addactivity := models.SgjPatientAddactivity{}
53
+	err := service.PatientReadDB().Model(&addactivity).Where("user_org_id = ? AND status = ?", orgid, 1).Last(&addactivity).Error
54
+	return addactivity,err
55
+}
56
+
57
+func GetAllActivities(orgid int64,limit int64)(activity []models.Activity,err error)  {
58
+	err = service.PatientReadDB().Model(activity).Where("user_org_id = ? AND status = ?", orgid, 1).Limit(limit).Find(&activity).Error
59
+	return
60
+}
61
+
62
+
63
+func GetAllActivitiestwo(orgid int64)(activity []models.Activity,err error)  {
64
+	err = service.PatientReadDB().Model(activity).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&activity).Error
65
+	return activity,err
66
+}
67
+
68
+func QueryHispitalDetail(orgid int64,id int64)(models.SgjPatientHospital,error)  {
69
+	hospital := models.SgjPatientHospital{}
70
+	err := service.PatientReadDB().Model(&hospital).Where("user_org_id = ?  AND modleid = ? AND status = ?", orgid, id, 1).Find(&hospital).Error
71
+	return  hospital,err
72
+}
73
+
74
+func GetOfficeDetail(orgid int64,id int64)(models.SgjPatientOffices,error) {
75
+	offices := models.SgjPatientOffices{}
76
+	err := service.PatientReadDB().Model(&offices).Where("user_org_id = ? AND modleid = ? AND status = ?", orgid, id, 1).Find(&offices).Error
77
+	return offices,err
78
+}
79
+
80
+func GetDoctorDetail(orgid int64,id int64)(editdoctor []*models.SgjPatientEditdoctor,err error)  {
81
+	err = service.PatientReadDB().Model(&editdoctor).Where("user_org_id = ? AND modleid = ? AND status = ?", orgid, id, 1).Order("doc_sort").Find(&editdoctor).Error
82
+	return
83
+}
84
+
85
+func GetOfficEnviromentDetail(orgid int64,id int64)(offenvironment []models.SgjPatientEnviroimages,err error)  {
86
+	err = service.PatientReadDB().Model(&offenvironment).Where("user_org_id = ? AND modeid = ? AND status = ?", orgid, id, 1).Order("sort").Find(&offenvironment).Error
87
+	return offenvironment,err
88
+}
89
+func GetArticlelistById(modeid int64,orgID int64)(models.SgjPatientArticlelist,error)  {
90
+	articlelist := models.SgjPatientArticlelist{}
91
+	err := service.PatientReadDB().Model(articlelist).Where("modeid = ? AND user_org_id = ? AND Status = ?", modeid, orgID, 1).Find(&articlelist).Error
92
+	return articlelist,err
93
+}
94
+
95
+func GetAllArticles(orgid int64,limit int64)(articlelist []models.Articles,err error)  {
96
+	err = service.PatientReadDB().Model(articlelist).Where("user_org_id = ? AND Status = ?", orgid, 1).Limit(limit).Find(&articlelist).Error
97
+	return
98
+}
99
+
100
+func GetAllActivitiById(modeid int64,orgID int64)(models.SgjPatientAddactivity,error)  {
101
+	addactivity := models.SgjPatientAddactivity{}
102
+	err := service.PatientReadDB().Model(addactivity).Where("modeid = ? AND user_org_id = ? AND Status = ?", modeid, orgID, 1).Find(&addactivity).Error
103
+	return addactivity,err
104
+}
105
+
106
+func GetDefalutNavigationData(orgid int64)(navigation []models.SgjPatientNavigation,err error) {
107
+	err = service.PatientReadDB().Where("user_org_id = ? AND status = ?", orgid, 1).Find(&navigation).Error
108
+	return navigation,err
109
+}
110
+func GetOrederModel(orgid int64)(model []*models.SgjPatientOrdmodel,err error)  {
111
+	db := service.PatientReadDB().Table("sgj_patient_ordmodel as o").Where("o.status = ?", 1)
112
+	if(orgid > 0){
113
+		db = db.Where("user_org_id = ?", orgid)
114
+	}
115
+	err = db.Preload("Hosaddress").Preload("Connectway").Preload("Worktime").Preload("Rideway").Preload("Oldration").Preload("Conrotation").
116
+		Select("o.id,o.title,o.sort,o.ctime,o.mtime,o.mode_type").Order("sort").Find(&model).Error
117
+	fmt.Println("sql错误是什么",err)
118
+	return
119
+
120
+}
121
+
122
+func GetAllConnecway(orgid int64)(connect []models.SgjPatientConnection,err error)  {
123
+	err = service.PatientReadDB().Model(&connect).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&connect).Error
124
+	return
125
+}
126
+
127
+func GetActivitDetail(id int64,orgid int64)(models.Activity,error)  {
128
+	activity := models.Activity{}
129
+	err := service.PatientReadDB().Model(&activity).Where(" id = ? AND user_org_id = ?", id, orgid).Find(&activity).Error
130
+	return activity,err
131
+}
132
+
133
+func GetArticlesDetail(id int64,orgid int64)(models.Articles,error)  {
134
+	articles := models.Articles{}
135
+	err := service.PatientReadDB().Model(&articles).Where("id = ? AND user_org_id = ?", id, orgid).Find(&articles).Error
136
+	return articles,err
137
+}
138
+
139
+func GetDoctorInfo(id int64,orgid int64)(models.SgjPatientEditdoctor,error)  {
140
+	editdoctor := models.SgjPatientEditdoctor{}
141
+	err := service.PatientReadDB().Model(&editdoctor).Where("id = ? AND user_org_id = ?", id, orgid).Find(&editdoctor).Error
142
+	return editdoctor,err
143
+}

+ 2 - 2
service/redis.go View File

@@ -15,7 +15,7 @@ func RedisClient() *redis.Client {
15 15
 		DB:       0,                                       // use default DB
16 16
 	})
17 17
 
18
-	// pong, err := client.Ping().Result()
19
-	// fmt.Println(pong, err)
18
+	pong, err := client.Ping().Result()
19
+	fmt.Println(pong, err)
20 20
 	return client
21 21
 }

+ 174 - 18
service/site_service/site_microwebsite_service.go View File

@@ -5,6 +5,7 @@ import (
5 5
 	"SCRM/service"
6 6
 	"fmt"
7 7
 	"time"
8
+	"github.com/jinzhu/gorm"
8 9
 )
9 10
 
10 11
 func AddPatientModel(model *models.SgjPatientModel)error{
@@ -103,7 +104,7 @@ func GetQueryDocInfo(orgID int64)(doc []*models.SgjUserStaffInfo,err error)  {
103 104
 }
104 105
 
105 106
 func GetQueryDocHead(orgID int64) (doc []*models.SgjPatientEditdoctor,err error) {
106
-	err = service.PatientReadDB().Where("user_org_id = ? AND status = ?", orgID, 1).Order("doc_sort").Find(&doc).Error
107
+	err = service.PatientReadDB().Where("user_org_id = ? AND status = ? AND img_show = ?", orgID, 1,1).Order("doc_sort").Find(&doc).Error
107 108
 	return
108 109
 }
109 110
 
@@ -204,7 +205,7 @@ func QueryDocById(orgID int64,id int64)(models.SgjUserStaffInfo,error)  {
204 205
 }
205 206
 
206 207
 func DeleteDoctor(id int64,orgID int64)(error) {
207
-	err := service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id = ? AND user_org_id = ?", id, orgID).Update(map[string]interface{}{"status": 0, "mtime": time.Now().Unix()}).Error
208
+	err := service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id = ? AND user_org_id = ?", id, orgID).Update(map[string]interface{}{"status": 0,"img_show":0,"modleid":0, "mtime": time.Now().Unix()}).Error
208 209
 	return err
209 210
 }
210 211
 
@@ -276,17 +277,21 @@ func GetData(orgid int64)(model []*models.SgjPatientModel,err error)  {
276 277
 	if(orgid > 0){
277 278
 		db = db.Where("user_org_id = ? ", orgid)
278 279
 	}
279
-	err = db.Preload("Hospitals").Preload("Offices").Preload("Doctors").Preload("OfficeEnviroment").
280
-		Preload("Editdoctor").Preload("Rotation").Preload("Macnavigation").Preload("Editmargin").Preload("Enviroimages").Preload("PatientEditpiclink").
280
+	err = db.Preload("Hospitals").Preload("Offices").Preload("OfficeEnviroment").
281
+		Preload("Editdoctor").Preload("Editmargin").Preload("Enviroimages").Preload("PatientEditpiclink").
281 282
 		Select("m.id,m.title,m.sort,m.ctime,m.mtime,m.user_org_id,m.status,m.mode_type").Order("sort").Find(&model).Error
282
-	return
283
+	fmt.Println("err二二err二二err二二err二二err二二err",err)
284
+
285
+		return
283 286
 }
284 287
 
288
+
289
+
285 290
 func UpdateDoctorsInfo(orgID int64,ids[] int64,editdoctor models.SgjPatientEditdoctor)(err error)  {
286 291
 	if(len(ids)==1){
287
-		err = service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id = ? and user_org_id = ?", ids[0], orgID).Update(map[string]interface{}{ "modleid": editdoctor.Modleid, "status": 1, "mtime": time.Now().Unix()}).Error
292
+		err = service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id = ? and user_org_id = ?", ids[0], orgID).Update(map[string]interface{}{ "modleid": editdoctor.Modleid, "status": 1,"img_show": 0, "mtime": time.Now().Unix()}).Error
288 293
 	}else {
289
-		err = service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id IN(?) and user_org_id = ?", ids, orgID).Update(map[string]interface{}{"modleid": editdoctor.Modleid, "status": 1, "mtime": time.Now().Unix()}).Error
294
+		err = service.PatientWriteDB().Model(&models.SgjPatientEditdoctor{}).Where("id IN(?) and user_org_id = ?", ids, orgID).Update(map[string]interface{}{"modleid": editdoctor.Modleid, "status": 1,"img_show": 0, "mtime": time.Now().Unix()}).Error
290 295
 	}
291 296
 	return
292 297
 }
@@ -297,6 +302,17 @@ func QueryEditDoc(mid int64,orgid int64)(models.SgjPatientDocinfo,  error)  {
297 302
 	return editdotor,err
298 303
 }
299 304
 
305
+func QueryModelByid(id int64,orgid int64)(models.SgjPatientModel,error)  {
306
+	model := models.SgjPatientModel{}
307
+	err := service.PatientReadDB().Model(&model).Where("id = ? AND user_org_id = ? AND status =?", id, orgid, 1).Find(&model).Error
308
+	return model,err
309
+}
310
+
311
+func QuerEditDocByModleid(mid int64,orgid int64)(editdoctor []models.SgjPatientEditdoctor,err error)  {
312
+	err = service.PatientReadDB().Model(&editdoctor).Where("modleid = ? AND user_org_id = ? AND status = ?", mid, orgid, 1).Find(&editdoctor).Error
313
+	return editdoctor,err
314
+}
315
+
300 316
 func QuerEditDocByid(mid int64,orgid int64)(editdoctor []*models.SgjPatientEditdoctor,err error)  {
301 317
 	err = service.PatientReadDB().Model(&editdoctor).Where("modleid = ? AND user_org_id = ? AND status = ?", mid, orgid, 1).Order("doc_sort").Find(&editdoctor).Error
302 318
 	return
@@ -324,12 +340,20 @@ func Upadatedocdata(orgid int64,id int64,docinfo models.SgjPatientDocinfo) error
324 340
 	return  err
325 341
 }
326 342
 
343
+func GetQueryModel(id,orgid int64)(models.SgjPatientModel,error)  {
344
+	model := models.SgjPatientModel{}
345
+	err := service.PatientReadDB().Model(&model).Where("id = ? AND user_org_id = ? AND status = ?", id, orgid, 1).Find(&model).Error
346
+	return model,err
347
+}
348
+
327 349
 func QuerOfficeEnviroment(id int64,orgid int64)(models.SgjPatientOffenvironment,error)  {
328 350
 	offenvironment := models.SgjPatientOffenvironment{}
329 351
 	err := service.PatientReadDB().Model(&offenvironment).Where("modelid = ? AND user_org_id = ? AND status = ?", id, orgid, 1).Find(&offenvironment).Error
330 352
 	return offenvironment,err
331 353
 }
332 354
 
355
+
356
+
333 357
 func QueryOfficeformById(modeid int64,orgid int64)(patientenviroimages []*models.SgjPatientEnviroimages,err error)  {
334 358
 	err = service.PatientReadDB().Model(&patientenviroimages).Where("modeid = ? AND user_org_id = ? AND status = ?", modeid, orgid, 1).Find(&patientenviroimages).Error
335 359
 	return
@@ -454,7 +478,7 @@ func AddRotationpic(conrotation models.SgjPatientConrotation) error  {
454 478
 }
455 479
 
456 480
 func GetRotationImages(orgid int64)(conrotation []models.SgjPatientConrotation,err error)  {
457
-	err = service.PatientReadDB().Model(&conrotation).Where("user_org_id = ? AND status = ? AND img_show = ?", orgid, 1,1).Find(&conrotation).Error
481
+	err = service.PatientReadDB().Model(&conrotation).Where("user_org_id = ? AND status = ? AND img_show = ?", orgid, 1,1).Order("sort").Find(&conrotation).Error
458 482
 	return conrotation,err
459 483
 }
460 484
 
@@ -504,7 +528,7 @@ func UpdateEnviroimages(id int64,orgid int64,enviroimages models.SgjPatientEnvir
504 528
 }
505 529
 
506 530
 func GetEditImages(orgid int64)(editpiclink []models.SgjPatientEditpiclink,err error)  {
507
-	err = service.PatientReadDB().Model(&editpiclink).Where("user_org_id = ? AND status = ? AND img_show = ?",orgid,1,1).Find(&editpiclink).Error
531
+	err = service.PatientReadDB().Model(&editpiclink).Where("user_org_id = ? AND status = ? AND img_show = ?",orgid,1,1).Order("sort").Find(&editpiclink).Error
508 532
 	return editpiclink,err
509 533
 }
510 534
 
@@ -623,7 +647,7 @@ func AddEditpic(conrotation *models.SgjPatientConrotation)(error)  {
623 647
 
624 648
 func QueryOldrotion(id int64,orgid int64)(models.SgjPatientOldrotation,error) {
625 649
 	conrotation := models.SgjPatientOldrotation{}
626
-	err := service.PatientReadDB().Model(conrotation).Where("id = ? AND user_org_id = ? ", id, orgid).Find(&conrotation).Error
650
+	err := service.PatientReadDB().Model(conrotation).Where("id = ? AND user_org_id = ? ", id, orgid).Order("sort").Find(&conrotation).Error
627 651
 	return conrotation,err
628 652
 }
629 653
 
@@ -646,6 +670,12 @@ func GetPatientRotaion(id int64,orgid int64)(models.SgjPatientRotation,error)  {
646 670
 	return rotation,err
647 671
 }
648 672
 
673
+func GetPatientModel(id int64,orgid int64)(models.SgjPatientModel,error)  {
674
+	model := models.SgjPatientModel{}
675
+	err := service.PatientReadDB().Model(&model).Where("id = ? AND user_org_id = ?", id, orgid).Order("sort").Find(&model).Error
676
+	return model,err
677
+}
678
+
649 679
 func GetPatientRotationById(id int64,orgid int64)(models.SgjPatientRotation,error)  {
650 680
 	rotation := models.SgjPatientRotation{}
651 681
 	err := service.PatientReadDB().Model(&rotation).Where("id = ? AND user_org_id =?", id, orgid).Find(&rotation).Error
@@ -677,6 +707,11 @@ func UpdateEditPatPicLink(id int64,orgid int64,editpiclink models.SgjPatientEdit
677 707
 	return  err
678 708
 }
679 709
 
710
+func UpdateEditPicLinkTwo(moid int64,orgid int64,)(error)  {
711
+	err := service.PatientWriteDB().Model(models.SgjPatientEditpiclink{}).Where("modeid = ? AND user_org_id = ? AND status = ?", moid, orgid, 1).Update(map[string]interface{}{"img_show": 0}).Error
712
+	return err
713
+}
714
+
680 715
 func GetPatientRotations(id int64,orgid int64)(models.SgjPatientRotation,error)  {
681 716
 	rotation := models.SgjPatientRotation{}
682 717
 	err := service.PatientReadDB().Model(&rotation).Where("id = ? AND user_org_id = ?", id, orgid).Find(&rotation).Error
@@ -741,9 +776,7 @@ func GetAllArticles(orgid int64,limit int64)(articlelist []models.Articles,err e
741 776
 	return
742 777
 }
743 778
 
744
-//func GetAllArticlesDetail(id int64)  {
745
-//
746
-//}
779
+
747 780
 
748 781
 func GetArticlelistById(modeid int64,orgID int64)(models.SgjPatientArticlelist,error)  {
749 782
 	articlelist := models.SgjPatientArticlelist{}
@@ -785,6 +818,13 @@ func AddOfficeThree(enviroimages *models.SgjPatientEnviroimages)(error)  {
785 818
 	err := service.PatientWriteDB().Model(&enviroimages).Create(&enviroimages).Error
786 819
 	return err
787 820
 }
821
+
822
+func GetQueryImages(mid int64,orgid int64)(enviroimages []models.SgjPatientEnviroimages,err error)  {
823
+
824
+	err = service.PatientReadDB().Model(enviroimages).Where("modeid = ? AND user_org_id = ? AND status = ?", mid, orgid, 1).Order("sort").Find(&enviroimages).Error
825
+	return enviroimages,err
826
+}
827
+
788 828
 func GetOfficeTwoVisible(orgid int64,id int64)(models.SgjPatientEnviroimages,error)  {
789 829
 	enviroimages := models.SgjPatientEnviroimages{}
790 830
 	err := service.PatientReadDB().Where("user_org_id = ? AND id = ? AND status = ?", orgid, id, 1).Find(&enviroimages).Error
@@ -924,9 +964,8 @@ func AddMagiclinkData(magiclink *models.SgjPatientMagiclink)error  {
924 964
 	return err
925 965
 }
926 966
 
927
-func GetMacLinkAddress(orgid int64)(models.SgjPatientMagiclink,error) {
928
-	patientMagiclink := models.SgjPatientMagiclink{}
929
-	err := service.PatientReadDB().Model(&patientMagiclink).Where("user_org_id = ? AND status = ?", orgid, 1).Last(&patientMagiclink).Error
967
+func GetMacLinkAddressTwo (orgid int64)(patientMagiclink []models.SgjPatientMagiclink,err error) {
968
+	err = service.PatientReadDB().Model(&patientMagiclink).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&patientMagiclink).Error
930 969
 	return patientMagiclink,err
931 970
 }
932 971
 
@@ -967,7 +1006,7 @@ func UpdateEditMacFormById(id int64,orgid int64,editmargin models.SgjPatientEdit
967 1006
 
968 1007
 func GetLikeMacAddressById(orgid int64,id int64)(models.SgjPatientMagiclink,error)  {
969 1008
       magiclink := models.SgjPatientMagiclink{}
970
-	err := service.PatientReadDB().Where("user_org_id = ? AND id = ?", orgid, id).Find(&magiclink).Error
1009
+	err := service.PatientReadDB().Where("user_org_id = ? AND linkaddress = ?", orgid, id).Find(&magiclink).Error
971 1010
 	return magiclink,err
972 1011
 }
973 1012
 
@@ -976,14 +1015,29 @@ func GetAllArticeList(orgid int64)(articles []models.Articles,err error)  {
976 1015
 	return articles,err
977 1016
 }
978 1017
 
1018
+func AddActicles(articles *models.Articles)error  {
1019
+	 err:= service.PatientWriteDB().Create(&articles).Error
1020
+	 return  err
1021
+}
1022
+
979 1023
 func UpdateLinkAddress(id int64,orgid int64,magiclink models.SgjPatientMagiclink)error  {
980 1024
 
981 1025
 	err := service.PatientWriteDB().Model(&models.SgjPatientMagiclink{}).Where("id = ? AND user_org_id = ? ", id, orgid).Update(map[string]interface{}{"linktype": magiclink.Linktype, "instationlink": magiclink.Instationlink, "articetype": magiclink.Articetype, "phone": magiclink.Phone, "outstationlink": magiclink.Outstationlink, "linkaddress": magiclink.Linkaddress, "title": magiclink.Title, "mtime": time.Now().Unix()}).Error
982 1026
 	return err
983 1027
 }
984 1028
 
985
-func AddMacLinkAddress(magiclink *models.SgjPatientMagiclink)error  {
1029
+func GetUpdateLinkAddress(id int64,orgid int64)(models.SgjPatientMagiclink,error) {
1030
+	editpiclink := models.SgjPatientMagiclink{}
1031
+	err := service.PatientReadDB().Model(&editpiclink).Where("id = ? AND user_org_id = ?",id,orgid).Find(&editpiclink).Error
1032
+	return  editpiclink,err
1033
+}
1034
+
1035
+func GetMacLinkAddress(orgid int64)(magiclink []models.SgjPatientMagiclink,err error)  {
1036
+	err = service.PatientReadDB().Model(&magiclink).Where("user_org_id = ? AND status =?", orgid, 1).Find(&magiclink).Error
1037
+	return magiclink,err
1038
+}
986 1039
 
1040
+func AddMacLinkAddress(magiclink *models.SgjPatientMagiclink)error  {
987 1041
 	err := service.PatientWriteDB().Create(&magiclink).Error
988 1042
 	return  err
989 1043
 }
@@ -997,7 +1051,11 @@ func GetPatientLinkAddress(id int64,orgid int64)(models.SgjPatientLinkaddress,er
997 1051
 func GetCountImages(orgid int64)(edipiclink []models.SgjPatientEditpiclink,total int64,err error)  {
998 1052
 	err = service.PatientReadDB().Where("user_org_id = ? AND img_show = ? AND status = ?", orgid,1,1).Find(&edipiclink).Count(&total).Error
999 1053
 	return edipiclink,total,err
1054
+}
1000 1055
 
1056
+func GetDeleteImages(orgid int64,modeid int64)(edipiclink []models.SgjPatientEditpiclink,total int64,err error)  {
1057
+	err = service.PatientReadDB().Where("user_org_id = ? AND modeid = ? AND status = ?", orgid, modeid, 1).Find(&edipiclink).Count(&total).Error
1058
+	return edipiclink,total,err
1001 1059
 }
1002 1060
 
1003 1061
 func GetTotalCount(orgid int64)(conrotation []models.SgjPatientConrotation,total int64,err error)  {
@@ -1010,6 +1068,11 @@ func GetCountPicImages(orgid int64,modeid int64)(edipiclink []models.SgjPatientE
1010 1068
 	return edipiclink,total,err
1011 1069
 }
1012 1070
 
1071
+func GetPicImages(orgid int64,modeid int64)(editpiclink []models.SgjPatientEditpiclink,err error)  {
1072
+	err = service.PatientReadDB().Where("user_org_id = ? AND modeid = ? AND status = ?", orgid, modeid, 1).Order("sort").Find(&editpiclink).Error
1073
+	return editpiclink,err
1074
+}
1075
+
1013 1076
 func QueryEditpiclinkCount(mid int64,orgid int64)(editpiclink []models.SgjPatientEditpiclink,total int64,err error)  {
1014 1077
 	err= service.PatientWriteDB().Where("modeid = ? AND user_org_id =? AND status = ?", mid, orgid, 1).Find(&editpiclink).Count(&total).Error
1015 1078
 	return editpiclink,total,err
@@ -1037,4 +1100,97 @@ func UpdateditnavigationLink(orgid int64,id int64,navgationlink models.SgjPatien
1037 1100
 	err := service.PatientWriteDB().Model(&navgationlink).Where("user_org_id = ? AND id =?", orgid, id).Update(map[string]interface{}{"linktype": navgationlink.Linktype, "linktypetwo": navgationlink.Linktypetwo, "articetype": navgationlink.Articetype, "title": navgationlink.Title, "phone": navgationlink.Phone, "outstation":
1038 1101
 	navgationlink.Outstation, "linkaddress": navgationlink.Linkaddress, "mtime": time.Now().Unix()}).Error
1039 1102
 	return err
1103
+}
1104
+
1105
+func AddEditDoctor(editdoctor *models.SgjPatientEditdoctor) error {
1106
+
1107
+	err := service.PatientWriteDB().Create(&editdoctor).Error
1108
+	return err
1109
+}
1110
+
1111
+func QuerEditDoctorInfo(mid int64,orgid int64)(editdoctor []models.SgjPatientEditdoctor,err error)  {
1112
+	err = service.PatientWriteDB().Model(&editdoctor).Where("modleid = ? AND user_org_id = ? AND status = ?", mid, orgid, 1).Find(&editdoctor).Error
1113
+
1114
+	return editdoctor,err
1115
+}
1116
+
1117
+func GetModel(orgid int64)(*models.SgjPatientModel,error)  {
1118
+     var model models.SgjPatientModel
1119
+     var err error
1120
+	err = service.PatientReadDB().Model(&models.SgjPatientModel{}).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&model).Error
1121
+	if err == gorm.ErrRecordNotFound{
1122
+		return nil,err
1123
+	}
1124
+	if err != nil {
1125
+		return nil, err
1126
+	}
1127
+	return &model, nil
1128
+}
1129
+
1130
+func AddPatientModelTwo(model *models.SgjPatientModel)error  {
1131
+	err := service.PatientWriteDB().Create(&model).Error
1132
+	return  err
1133
+}
1134
+
1135
+func GetQueryModelByLastData(orgid int64)(models.SgjPatientModel,error){
1136
+	model := models.SgjPatientModel{}
1137
+	err := service.PatientReadDB().Model(&model).Where("user_org_id = ? AND status = ?", orgid, 1).Last(&model).Error
1138
+	return  model,err
1139
+}
1140
+
1141
+func AddPatientEdit(editpiclink *models.SgjPatientEditpiclink)error  {
1142
+	err := service.PatientWriteDB().Create(&editpiclink).Error
1143
+	return err
1144
+}
1145
+
1146
+func AddHospital(hospital *models.SgjPatientHospital) error {
1147
+	err := service.PatientWriteDB().Create(&hospital).Error
1148
+	return err
1149
+}
1150
+
1151
+func AddEditMargin(editmargin *models.SgjPatientEditmargin) error {
1152
+	err := service.PatientWriteDB().Create(&editmargin).Error
1153
+	return err
1154
+}
1155
+
1156
+func AddPatientOffices(offices *models.SgjPatientOffices)error  {
1157
+	err := service.PatientWriteDB().Create(&offices).Error
1158
+	return  err
1159
+}
1160
+
1161
+func GetDefaultNavigation(orgid int64)(navigation []models.SgjPatientNavigation,err error)  {
1162
+
1163
+	err = service.PatientReadDB().Model(navigation).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&navigation).Error
1164
+
1165
+	return navigation,err
1166
+}
1167
+
1168
+func AddDefaultData(navigation *models.SgjPatientNavigation) error {
1169
+	err := service.PatientWriteDB().Create(&navigation).Error
1170
+	return err
1171
+}
1172
+
1173
+func GetAllModelTitle(orgid int64)(models  []models.SgjPatientModel,err error)  {
1174
+
1175
+	err = service.PatientReadDB().Model(models).Where("user_org_id = ? AND status = ?", orgid, 1).Find(&models).Error
1176
+	return models,err
1177
+
1178
+}
1179
+
1180
+func GetDoctorDetailInfo(id int64,orgid int64)(models.SgjPatientEditdoctor,error)  {
1181
+	editdoctor := models.SgjPatientEditdoctor{}
1182
+	err := service.PatientReadDB().Model(&editdoctor).Where("id=? AND user_org_id = ?", id, orgid).Find(&editdoctor).Error
1183
+	return  editdoctor,err
1184
+}
1185
+
1186
+func GetArticleListDetail(id int64,orgid int64)(models.Articles,error)  {
1187
+	articles := models.Articles{}
1188
+	err := service.PatientReadDB().Model(&articles).Where("id=? AND user_org_id =?", id, orgid).Find(&articles).Error
1189
+	return articles,err
1190
+}
1191
+
1192
+func GetActivitiesListDetail(id int64,orgid int64)(models.Activity,error)  {
1193
+	activity := models.Activity{}
1194
+	err := service.PatientReadDB().Model(&activity).Where("id=? AND user_org_id = ?", id, orgid).Find(&activity).Error
1195
+	return activity,err
1040 1196
 }

+ 4 - 0
service/wechat_service/open_wechat_service.go View File

@@ -314,9 +314,11 @@ func SendClickButtonMessage(appid string, ToUserName string, FromUserName string
314 314
 
315 315
 func GetReqPreAuthCode() (code string, err error) {
316 316
 	redisClient := service.RedisClient()
317
+	fmt.Println("redisClietent是设么",redisClient)
317 318
 	defer redisClient.Close()
318 319
 
319 320
 	componentAccessToken, err := redisClient.Get("sgj_patient:component_access_token").Result()
321
+	fmt.Println("componentAccessToken是设么",componentAccessToken)
320 322
 	if err != nil {
321 323
 		utils.ErrorLog("component_access_token不存在")
322 324
 		return
@@ -462,6 +464,8 @@ func PostJSON(uri string, jsonData []byte) ([]byte, error) {
462 464
 func SendMpWechatMenus(AuthorizerAccessToken string, jsonData []byte) (err error) {
463 465
 	//读取响应
464 466
 	body, err := PostJSON("https://api.weixin.qq.com/cgi-bin/menu/create?access_token="+AuthorizerAccessToken, jsonData)
467
+	fmt.Println("公众徐欧文是树森",err)
468
+	fmt.Println("body",body)
465 469
 	if err != nil {
466 470
 		return
467 471
 	}