Your Name 3 anos atrás
pai
commit
d6c27db1ad

+ 8
- 1
src/main/java/com/yunzhi/marketing/controller/MiniAppController.java Ver arquivo

@@ -418,11 +418,18 @@ public class MiniAppController extends BaseController {
418 418
         map.put("openId", person.getMiniOpenid());
419 419
         map.put("orgId", person.getOrgId());
420 420
         map.put("personId", person.getPersonId());
421
-        miniResp.put("token", JWTUtils.newTokenByMap(map));
421
+        String token = JWTUtils.newTokenByMap(map);
422
+        miniResp.put("token", token);
423
+        sysTokenService.saveToken(token);
424
+
425
+        Map<String, Object> extraInfo = new HashMap<>();
426
+        TdCity tdCity = iTdCityService.getLocationCity(null, person.getOrgId(), null);
422 427
 
423 428
         Map<String, Object> result = new HashMap<>();
424 429
         result.put("miniApp", miniResp);
425 430
         result.put("person", person);
431
+        result.put("extraInfo", extraInfo);
432
+        result.put("city", tdCity);
426 433
 
427 434
         return ResponseBean.success(result);
428 435
     }

+ 2
- 2
src/main/resources/application-prod.yml Ver arquivo

@@ -26,6 +26,6 @@ logging:
26 26
 
27 27
 # 企业微信
28 28
 workwx:
29
-  corpid: wwf5f7889b49bb2510
29
+  corpid: ww5d25337525b92d79
30 30
   agentid: 3010097
31
-  secret: 0zKXGe3lmIoAfedoeLV_6DK96PM-Sg_c79rHqpSlvDs
31
+  secret: Pfh7UEIn8QEbFlaU5Z_9aPDYHzHlFJJ9rzdm385my28