|
@@ -1,6 +1,7 @@
|
|
|
package com.gis.service.impl;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.gis.common.constant.ConfigConstant;
|
|
@@ -362,7 +363,14 @@ public class WorkServiceImpl extends IBaseStrServiceImpl<WorkEntity, String> imp
|
|
|
entity.setShare(someDataJson.getString("share"));
|
|
|
entity.setQrCode(someDataJson.getString("qrCode"));
|
|
|
entity.setStatus(someDataJson.getInteger("status"));
|
|
|
- entity.setPassword(someDataJson.getString("password"));
|
|
|
+ String password = someDataJson.getString("password");
|
|
|
+ entity.setPassword(password);
|
|
|
+ // 2022-10-28 是否有值来判断
|
|
|
+ entity.setIsPassword(0);
|
|
|
+ if(StrUtil.isNotBlank(password)){
|
|
|
+ entity.setIsPassword(1);
|
|
|
+ }
|
|
|
+
|
|
|
String scenes = someDataJson.getString("scenes");
|
|
|
entity.setSceneCodes(getSceneCodes(scenes));
|
|
|
// 更新logoQrCode
|