Преглед изворни кода

获取jsonObject方法修改

huangxuechao пре 4 година
родитељ
комит
ca05e021b3

+ 1 - 1
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/service/impl/ByteDanceGeneralCopywriterServiceImpl.java

@@ -47,7 +47,7 @@ public class ByteDanceGeneralCopywriterServiceImpl extends ServiceImpl<ByteDance
             List<JSONObject> jsonObjectList = IUserAllocationService.getAccountIdsByUserId(userId);
             if(!Check.isNull(jsonObjectList)){
                 for (JSONObject jsonObject:jsonObjectList) {
-                    accountIds.add((String) jsonObject.get("account_id"));
+                    accountIds.add(jsonObject.getString("account_id"));
                 }
             }else{
                 return Result.successMsg("当前登录人未绑定账户","");