wangtao před 3 roky
rodič
revize
8c877f19fe

+ 16 - 16
lb-app/src/main/java/com/ydd/app/service/impl/ApiDevelopServiceImpl.java

@@ -277,22 +277,22 @@ public class ApiDevelopServiceImpl implements ApiDevelopService {
 
     @Override
     public ResponseResult setCallbackUrl(Long loginId, AppInfo appInfo) {
-        ResponseResult result = appInfoJudge(loginId);
-        if (result.getCode() != ResponseResultCodeEnum.SUCCESS.getCode()) {
-            return result;
-        }
-
-        AppInfo oldAppInfo = (AppInfo) result.getData();
-
-        List<AppInfo> appInfoList = iAppInfoService.list(new QueryWrapper<AppInfo>().eq("deleted", 0).eq("name", oldAppInfo.getName()));
-
-        appInfoList.stream().forEach(appInfo1 -> {
-            appInfo1.setStoreStatusNotifyUrl(appInfo.getStoreStatusNotifyUrl());
-            appInfo1.setOrderStatusNotifyUrl(appInfo.getOrderStatusNotifyUrl());
-
-            iAppInfoService.updateById(appInfo1);
-        });
-
+//        ResponseResult result = appInfoJudge(loginId);
+//        if (result.getCode() != ResponseResultCodeEnum.SUCCESS.getCode()) {
+//            return result;
+//        }
+//
+//        AppInfo oldAppInfo = (AppInfo) result.getData();
+//
+//        List<AppInfo> appInfoList = iAppInfoService.list(new QueryWrapper<AppInfo>().eq("deleted", 0).eq("name", oldAppInfo.getName()));
+//
+//        appInfoList.stream().forEach(appInfo1 -> {
+//            appInfo1.setStoreStatusNotifyUrl(appInfo.getStoreStatusNotifyUrl());
+//            appInfo1.setOrderStatusNotifyUrl(appInfo.getOrderStatusNotifyUrl());
+//
+//            iAppInfoService.updateById(appInfo1);
+//        });
+        iAppInfoService.updateById(appInfo);
         return ResponseResult.success();
     }