lyhzzz 1 năm trước cách đây
mục cha
commit
b88350dcc0

+ 8 - 2
src/main/java/com/fdkankan/manage_jp/controller/ProjectSceneController.java

@@ -62,10 +62,16 @@ public class ProjectSceneController extends BaseController{
         if (StringUtils.isBlank(ciphertext)){
             throw new BusinessException(ResultCode.PARAM_ERROR);
         }
-        log.info(ciphertext);
         log.info("ciphertext:{},type:{}",ciphertext,type);
         String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
-        SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);
+        log.info("deTxt:{}",deTxt);
+        if(StringUtils.isBlank(deTxt)){
+            throw new BusinessException(ResultCode.PARAM_ERROR);
+        }
+        JSONObject jsonObject = JSONObject.parseObject(deTxt);
+        SceneGpsParam param = new SceneGpsParam();
+        param.setUserId(jsonObject.getLong("userId"));
+        param.setCompanyId(jsonObject.getLong("companyId"));
         param.setType(type);
         return Result.success(projectSceneGpsService.allSceneGps(param));
     }