Forráskód Böngészése

移动端应用增加 phoneJson 手机客户端json信息

marxjaw 2 hónapja
szülő
commit
15cb330f79
26 módosított fájl, 111 hozzáadás és 7 törlés
  1. 5 0
      yt-adage/adage-service/src/main/resources/mapper/AppUserMapper.xml
  2. 5 0
      yt-algebraic/algebraic-service/src/main/resources/mapper/AppUserMapper.xml
  3. 5 0
      yt-allusion/allusion-service/src/main/resources/mapper/AppUserMapper.xml
  4. 5 0
      yt-answer/answer-service/src/main/resources/mapper/AppUserMapper.xml
  5. 5 0
      yt-arithmetic/arithmetic-service/src/main/resources/mapper/AppUserMapper.xml
  6. 5 0
      yt-calculator/calculator-service/src/main/resources/mapper/AppUserMapper.xml
  7. 5 0
      yt-carp/carp-service/src/main/resources/mapper/AppUserMapper.xml
  8. 2 0
      yt-common/src/main/java/com/ytpm/app/model/YtDyzUser.java
  9. 5 0
      yt-countstep/countstep-service/src/main/resources/mapper/AppUserMapper.xml
  10. 2 0
      yt-diary/diary-service/src/main/resources/mapper/AppUserMapper.xml
  11. 2 0
      yt-dtw/dtw-service/src/main/resources/mapper/AppUserMapper.xml
  12. 5 0
      yt-emoticons/emoticons-service/src/main/resources/mapper/AppUserMapper.xml
  13. 5 0
      yt-funarith/funarith-service/src/main/resources/mapper/AppUserMapper.xml
  14. 0 4
      yt-gateway/src/main/resources/bootstrap.yml
  15. 5 0
      yt-idiom/idiom-service/src/main/resources/mapper/AppUserMapper.xml
  16. 2 0
      yt-irun/irun-service/src/main/resources/mapper/AppUserMapper.xml
  17. 5 0
      yt-lemon/lemon-service/src/main/resources/mapper/AppUserMapper.xml
  18. 5 0
      yt-lime/lime-service/src/main/resources/mapper/AppUserMapper.xml
  19. 5 0
      yt-mileage/mileage-service/src/main/resources/mapper/AppUserMapper.xml
  20. 5 0
      yt-nofeeds/nofeeds-service/src/main/resources/mapper/AppUserMapper.xml
  21. 5 0
      yt-picking/picking-service/src/main/resources/mapper/AppUserMapper.xml
  22. 2 0
      yt-raisepig/raisepig-service/src/main/resources/mapper/AppUserMapper.xml
  23. 6 3
      yt-risk/risk-feign/src/main/java/com/ytpm/feign/fallback/RiskFeignFallBack.java
  24. 5 0
      yt-summary/summary-service/src/main/resources/mapper/AppUserMapper.xml
  25. 5 0
      yt-vitality/vitality-service/src/main/resources/mapper/AppUserMapper.xml
  26. 5 0
      yt-walk/walk-service/src/main/resources/mapper/AppUserMapper.xml

+ 5 - 0
yt-adage/adage-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-algebraic/algebraic-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-allusion/allusion-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-answer/answer-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-arithmetic/arithmetic-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-calculator/calculator-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-carp/carp-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 2 - 0
yt-common/src/main/java/com/ytpm/app/model/YtDyzUser.java

@@ -123,4 +123,6 @@ public class YtDyzUser extends PageMeta {
     private String phone;
     @ApiModelProperty(value = "设备ID")
     private String deviceId;
+    @ApiModelProperty(value = "手机json收集信息")
+    private String phoneJson;
 }

+ 5 - 0
yt-countstep/countstep-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 2 - 0
yt-diary/diary-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>

+ 2 - 0
yt-dtw/dtw-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>

+ 5 - 0
yt-emoticons/emoticons-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-funarith/funarith-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 0 - 4
yt-gateway/src/main/resources/bootstrap.yml

@@ -1,10 +1,6 @@
 spring:
   profiles:
     active: prod
-logging:
-  level:
-    com.alibaba.nacos: DEBUG
-    org.springframework.cloud: DEBUG
 ---
 spring:
   profiles: local

+ 5 - 0
yt-idiom/idiom-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 2 - 0
yt-irun/irun-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>

+ 5 - 0
yt-lemon/lemon-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-lime/lime-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-mileage/mileage-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-nofeeds/nofeeds-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-picking/picking-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 2 - 0
yt-raisepig/raisepig-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>

+ 6 - 3
yt-risk/risk-feign/src/main/java/com/ytpm/feign/fallback/RiskFeignFallBack.java

@@ -4,19 +4,22 @@ import com.ytpm.app.model.YtDyzUser;
 import com.ytpm.feign.RiskFeign;
 import com.ytpm.general.RepMessage;
 import com.ytpm.general.Result;
+import com.ytpm.general.StatusCode;
 import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RequestBody;
 
-
+/**
+ * 服务降级配置
+ */
 @Component
 public abstract class RiskFeignFallBack implements RiskFeign {
     @Override
     public Result<?> checkRisk(@RequestBody YtDyzUser ytDyzUser) {
-        return Result.resultErr(RepMessage.SERVICE_UNAVAILABLE);
+        return new Result<>(StatusCode.ACCESS_ERR, RepMessage.TOKEN_EXPIRE);
     }
 
     @Override
     public Result<?> checkAdRisk(@RequestBody YtDyzUser ytDyzUser) {
-        return Result.resultErr(RepMessage.SERVICE_UNAVAILABLE);
+        return new Result<>(StatusCode.ACCESS_ERR, RepMessage.TOKEN_EXPIRE);
     }
 }

+ 5 - 0
yt-summary/summary-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-vitality/vitality-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>

+ 5 - 0
yt-walk/walk-service/src/main/resources/mapper/AppUserMapper.xml

@@ -27,6 +27,7 @@
          app_id,
          power,
          phone,
+         phone_json,
          device_id
         )
         values
@@ -54,6 +55,7 @@
          #{appId},
          #{power},
          #{phone},
+         #{phoneJson},
          #{deviceId}
         )
     </insert>
@@ -153,6 +155,9 @@
             <if test="wxOpenId != null">
                 wx_open_id = #{wxOpenId},
             </if>
+            <if test="phoneJson != null">
+                phone_json = #{phoneJson},
+            </if>
             <if test="platformId != null">
                 platform_id = #{platformId}
             </if>