‘linchangsheng’ il y a 5 mois
Parent
commit
9865371736

+ 7 - 3
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/common/outside/OutsideBaseApi.java

@@ -20,9 +20,13 @@ public class OutsideBaseApi {
 
 
     public <T> T checkData(ResponseHelper<T> result){
-        if(result.getCode() != ResponseHelper.ResponseCode_Success){
-            String errMsg = result.getMessage().replace("温馨提示:", "");
-            throw new RemoteServiceException(result.getCode(),errMsg);
+        if(result.getCode() != ResponseHelper.ResponseCode_Success ){
+            if ( result.getCode() != 415) {
+                String errMsg = result.getMessage().replace("温馨提示:", "");
+                throw new RemoteServiceException(result.getCode(), errMsg);
+            }else {
+                throw new RemoteServiceException(result.getCode(), result.getMessage());
+            }
         }
         return result.getData();
     }

+ 1 - 1
mall-server-sync-api/src/main/java/com/gree/mall/manager/logic/SyncOrderInfoLogic.java

@@ -604,7 +604,7 @@ public class SyncOrderInfoLogic {
 
                 itfGreeSynDownloadRecService.lambdaUpdate()
                         .in(ItfGreeSynDownloadRec::getSynReqId, syncIds)
-                        .set(ItfGreeSynDownloadRec::getGreeStatSynErrMsg, e.getMessage())
+                        .set(ItfGreeSynDownloadRec::getGreeStatSynErrMsg, e.toString())
                         .set(ItfGreeSynDownloadRec::getGreeStatSynTime, new Date())
                         .set(ItfGreeSynDownloadRec::getGreeStatSynStatus, 99).update();