Pārlūkot izejas kodu

发消息接口

pzc 4 gadi atpakaļ
vecāks
revīzija
1040235ab1

+ 11 - 9
UI/src/utils/config.js

@@ -4,8 +4,8 @@ const APIV3 = 'http://localhost:8004'
 const APIV4 = 'http://192.168.50.32:8006'
 
 const APIV3Auth = 'http://192.168.50.32:8031'
-const WXAPIV5= 'http://192.168.50.32:7000'
-const WXMpAPI= 'http://192.168.50.39:8081'
+const WXAPIV5= 'http://localhost:7000'
+const WXMpAPI= 'http://localhost:8081'
 module.exports =  {
   name: '亮健营销平台',
   prefix: 'bird',
@@ -13,16 +13,18 @@ module.exports =  {
   logo: '/logo.svg',
   iconFontCSS: '/iconfont.css',
   iconFontJS: '/iconfont.js',
-  CORS: [
-  'http://localhost:8031',
+  CORS: ['http://localhost:8000',
+  'http://localhost:8030',
+  'http://192.168.50.32:8031',
+  'http://localhost:8080',
+  'http://192.168.50.32:8030',
+  'http://localhost:8004',
+  'http://192.168.50.32:8006',
+  'http://localhost:8030',
   'http://192.168.50.32:8031',
   'http://localhost:8081',
   'http://192.168.50.32:8081',
-  'http://192.168.50.39:8081',
-  'http://localhost:7000',
-  'http://localhost:8000',
-  'http://localhost:8004',
-  'http://192.168.50.32:8006'],
+  'http://localhost:7000'],
   //YQL: ['http://localhost:57251'],
   openPages: ['/login','/'],
   apiPrefix: '/api/v1',

+ 9 - 11
UI/src/utils/config1.js

@@ -4,8 +4,8 @@ const APIV3 = 'http://localhost:8004'
 const APIV4 = 'http://192.168.50.32:8006'
 
 const APIV3Auth = 'http://192.168.50.32:8031'
-const WXAPIV5= 'http://localhost:7000'
-const WXMpAPI= 'http://localhost:8081'
+const WXAPIV5= 'http://192.168.50.32:7000'
+const WXMpAPI= 'http://192.168.50.39:8081'
 module.exports =  {
   name: '亮健营销平台',
   prefix: 'bird',
@@ -13,18 +13,16 @@ module.exports =  {
   logo: '/logo.svg',
   iconFontCSS: '/iconfont.css',
   iconFontJS: '/iconfont.js',
-  CORS: ['http://localhost:8000',
-  'http://localhost:8030',
-  'http://192.168.50.32:8031',
-  'http://localhost:8080',
-  'http://192.168.50.32:8030',
-  'http://localhost:8004',
-  'http://192.168.50.32:8006',
-  'http://localhost:8030',
+  CORS: [
+  'http://localhost:8031',
   'http://192.168.50.32:8031',
   'http://localhost:8081',
   'http://192.168.50.32:8081',
-  'http://localhost:7000'],
+  'http://192.168.50.39:8081',
+  'http://localhost:7000',
+  'http://localhost:8000',
+  'http://localhost:8004',
+  'http://192.168.50.32:8006'],
   //YQL: ['http://localhost:57251'],
   openPages: ['/login','/'],
   apiPrefix: '/api/v1',

+ 2 - 1
mpwechatApp/src/main/java/com/liangjian11/wx/mp/service/impl/FansUnionServiceImpl.java

@@ -302,7 +302,8 @@ public class FansUnionServiceImpl extends ServiceImpl<FansUnionMapper, FansUnion
                 appIdStr = channelPort.getAppId();
         } else if (!StringUtils.isEmpty(appId)) {
                 appIdStr = appId;
-        } else
+        }
+        if(StringUtils.isEmpty(appIdStr))
                 return new ResultInfo(0, 500, "发生异常,没有查到端口Id者设置公众号appId");
 
         Message message = null;