ソースを参照

fix:青柠檬IOS登录、获取配置接口修改

zack 2 ヶ月 前
コミット
ba24b75c2d

+ 4 - 4
yt-ios-lemon/lemon-ios-service/src/main/java/com/ytpm/lemonios/controller/WxController.java

@@ -81,7 +81,7 @@ public class WxController {
     @Transactional
     public Result<YtDyzUser> iosLogin(@RequestBody IosLoginParam param, HttpServletRequest request) {
         //根据应用ID获取配置调用接口登录
-        WxDefaultConfig defaultConfig = appUserMapper.getDefaultConfigByAppId(param.getAppId());
+        WxDefaultConfig defaultConfig = appUserMapper.getDefaultConfigByDitchId(param.getDitchId());
         if(Objects.isNull(defaultConfig)){
             return new Result<>(StatusCode.ACCESS_ERR,"登录失败,未找到相应配置!");
         }
@@ -103,11 +103,11 @@ public class WxController {
         return Result.resultOk(RepMessage.LOGIN_SUCCESS, old);
     }
 
-    @PostMapping("/getByTypeId")
+    @PostMapping("/getByDitchId")
     @ApiOperation("获取默认配置")
     @Transactional
-    public Result<WxDefaultConfig> getByTypeId(@RequestBody IosLoginParam param){
-        WxDefaultConfig defaultConfig = appUserMapper.getDefaultConfigByAppId(param.getAppId());
+    public Result<WxDefaultConfig> getByDitchId(@RequestBody IosLoginParam param){
+        WxDefaultConfig defaultConfig = appUserMapper.getDefaultConfigByDitchId(param.getDitchId());
         return Result.resultOk(RepMessage.QUERY_SUCCESS, defaultConfig);
     }
 

+ 1 - 1
yt-ios-lemon/lemon-ios-service/src/main/java/com/ytpm/lemonios/dao/AppUserMapper.java

@@ -108,7 +108,7 @@ public interface AppUserMapper {
     /**
      * 根据应用ID查询应用默认配置
      */
-    WxDefaultConfig getDefaultConfigByAppId(@Param("appId") String appId);
+    WxDefaultConfig getDefaultConfigByDitchId(@Param("ditchId") Long ditchId);
 
     /**
      * 根据微信openid查询用户

+ 2 - 2
yt-ios-lemon/lemon-ios-service/src/main/resources/mapper/AppUserMapper.xml

@@ -458,12 +458,12 @@
         from yt_app_default_config
         where app_type = #{appType}
     </select>
-    <select id="getDefaultConfigByAppId" resultType="com.ytpm.app.view.WxDefaultConfig">
+    <select id="getDefaultConfigByDitchId" resultType="com.ytpm.app.view.WxDefaultConfig">
         select
             config_id, config_name, open_id, secret, app_id, app_key, app_type,user_path,login_path,ad_path,answer_path,power_path
              ,can_simulator,taku_app_id,taku_key,taku_banner_pid,taku_interstitial_pid,taku_reward_pid,taku_native_pid,can_use_adb,can_accumulation,can_use_float,can_use_root,ditch_id,power_wait_time,interstitial_interval_time
         from yt_app_default_config
-        where app_id = #{appId}
+        where ditch_id = #{ditchId}
     </select>
     <select id="getSecretByAppId" resultType="java.lang.String">
         select