1.添加 大屏侧交互controller日志
Showing
1 changed file
with
22 additions
and
10 deletions
... | @@ -69,6 +69,9 @@ public class UserOperationController { | ... | @@ -69,6 +69,9 @@ public class UserOperationController { |
69 | @ApiOperation("新增大屏账户同时创建会员信息") | 69 | @ApiOperation("新增大屏账户同时创建会员信息") |
70 | @AnonymousAccess | 70 | @AnonymousAccess |
71 | public ResultInfo createUserAndCreateMember(@Validated @RequestBody TempIptvUser resources) { | 71 | public ResultInfo createUserAndCreateMember(@Validated @RequestBody TempIptvUser resources) { |
72 | |||
73 | log.info("createUserAndCreateMember ==> input ==> [{}]",resources); | ||
74 | |||
72 | UserTv userTv = new UserTv(); | 75 | UserTv userTv = new UserTv(); |
73 | BeanUtils.copyProperties(resources,userTv); | 76 | BeanUtils.copyProperties(resources,userTv); |
74 | boolean result = this.userTvOperationService.createMemberByUserTv(userTv); | 77 | boolean result = this.userTvOperationService.createMemberByUserTv(userTv); |
... | @@ -80,7 +83,7 @@ public class UserOperationController { | ... | @@ -80,7 +83,7 @@ public class UserOperationController { |
80 | @AnonymousAccess | 83 | @AnonymousAccess |
81 | public ResultInfo createWeixinUserAndCreateMember(@Validated @RequestBody UserWeixin resources) { | 84 | public ResultInfo createWeixinUserAndCreateMember(@Validated @RequestBody UserWeixin resources) { |
82 | 85 | ||
83 | log.info("Param ==> resource ==> [{}]",resources); | 86 | log.info("createWeixinUserAndCreateMember ==> input ==> [{}]",resources); |
84 | 87 | ||
85 | String appId = resources.getAppid(); | 88 | String appId = resources.getAppid(); |
86 | if (StringUtils.isBlank(appId)) | 89 | if (StringUtils.isBlank(appId)) |
... | @@ -102,7 +105,8 @@ public class UserOperationController { | ... | @@ -102,7 +105,8 @@ public class UserOperationController { |
102 | @GetMapping(value = "/findBindByPlatformAccount/{platformAccount}") | 105 | @GetMapping(value = "/findBindByPlatformAccount/{platformAccount}") |
103 | @AnonymousAccess | 106 | @AnonymousAccess |
104 | public ResultInfo findBindByPlatformAccount(@PathVariable("platformAccount") String platformAccount) { | 107 | public ResultInfo findBindByPlatformAccount(@PathVariable("platformAccount") String platformAccount) { |
105 | log.info("resources :[{}]",platformAccount); | 108 | log.info("findBindByPlatformAccount ==> input ==> [{}]",platformAccount); |
109 | |||
106 | List<MemberDTO> result = this.userTvOperationService.findBindByPlatformAccount(platformAccount); | 110 | List<MemberDTO> result = this.userTvOperationService.findBindByPlatformAccount(platformAccount); |
107 | return ResultInfo.success(result); | 111 | return ResultInfo.success(result); |
108 | } | 112 | } |
... | @@ -111,7 +115,7 @@ public class UserOperationController { | ... | @@ -111,7 +115,7 @@ public class UserOperationController { |
111 | @ApiOperation("带参二维码") | 115 | @ApiOperation("带参二维码") |
112 | @AnonymousAccess | 116 | @AnonymousAccess |
113 | public ResultInfo sendQrCodeMessage(@RequestBody String content) { | 117 | public ResultInfo sendQrCodeMessage(@RequestBody String content) { |
114 | log.info("resources :[{}]",content); | 118 | log.info("sendQrCodeMessage ==> input ==> [{}]",content); |
115 | boolean result = this.userTvOperationService.sendQrCodeMessage(content); | 119 | boolean result = this.userTvOperationService.sendQrCodeMessage(content); |
116 | return ResultInfo.success(result); | 120 | return ResultInfo.success(result); |
117 | } | 121 | } |
... | @@ -120,7 +124,7 @@ public class UserOperationController { | ... | @@ -120,7 +124,7 @@ public class UserOperationController { |
120 | @ApiOperation("删除全部收藏") | 124 | @ApiOperation("删除全部收藏") |
121 | @AnonymousAccess | 125 | @AnonymousAccess |
122 | public ResultInfo deleteAllCollection(@RequestBody String content) { | 126 | public ResultInfo deleteAllCollection(@RequestBody String content) { |
123 | log.info("resources :[{}]",content); | 127 | log.info("deleteAllCollection ==> input ==> [{}]",content); |
124 | boolean result = this.userTvOperationService.deleteAllCollection(content); | 128 | boolean result = this.userTvOperationService.deleteAllCollection(content); |
125 | return ResultInfo.success(result); | 129 | return ResultInfo.success(result); |
126 | } | 130 | } |
... | @@ -129,7 +133,7 @@ public class UserOperationController { | ... | @@ -129,7 +133,7 @@ public class UserOperationController { |
129 | @ApiOperation("删除收藏") | 133 | @ApiOperation("删除收藏") |
130 | @AnonymousAccess | 134 | @AnonymousAccess |
131 | public ResultInfo deleteCollection(@RequestBody String content) { | 135 | public ResultInfo deleteCollection(@RequestBody String content) { |
132 | log.info("resources :[{}]",content); | 136 | log.info("deleteCollection ==> input ==> [{}]",content); |
133 | boolean result = this.userTvOperationService.deleteCollection(content); | 137 | boolean result = this.userTvOperationService.deleteCollection(content); |
134 | return ResultInfo.success(result); | 138 | return ResultInfo.success(result); |
135 | } | 139 | } |
... | @@ -138,7 +142,7 @@ public class UserOperationController { | ... | @@ -138,7 +142,7 @@ public class UserOperationController { |
138 | @ApiOperation("添加收藏") | 142 | @ApiOperation("添加收藏") |
139 | @AnonymousAccess | 143 | @AnonymousAccess |
140 | public ResultInfo addCollection(@RequestBody String content) { | 144 | public ResultInfo addCollection(@RequestBody String content) { |
141 | log.info("resources :[{}]",content); | 145 | log.info("addCollection ==> input ==> [{}]",content); |
142 | boolean result = this.userTvOperationService.addCollection(content); | 146 | boolean result = this.userTvOperationService.addCollection(content); |
143 | return ResultInfo.success(result); | 147 | return ResultInfo.success(result); |
144 | } | 148 | } |
... | @@ -147,6 +151,9 @@ public class UserOperationController { | ... | @@ -147,6 +151,9 @@ public class UserOperationController { |
147 | @ApiOperation("大屏用户解绑") | 151 | @ApiOperation("大屏用户解绑") |
148 | @AnonymousAccess | 152 | @AnonymousAccess |
149 | public ResultInfo unbind(@Validated @RequestBody TempIptvUser resources) { | 153 | public ResultInfo unbind(@Validated @RequestBody TempIptvUser resources) { |
154 | |||
155 | log.info("unbind ==> input ==> [{}]",resources); | ||
156 | |||
150 | UserTv userTv = new UserTv(); | 157 | UserTv userTv = new UserTv(); |
151 | BeanUtils.copyProperties(resources,userTv); | 158 | BeanUtils.copyProperties(resources,userTv); |
152 | String unionid = resources.getUnionid(); | 159 | String unionid = resources.getUnionid(); |
... | @@ -174,6 +181,9 @@ public class UserOperationController { | ... | @@ -174,6 +181,9 @@ public class UserOperationController { |
174 | @ApiOperation("大屏更换主账号") | 181 | @ApiOperation("大屏更换主账号") |
175 | @AnonymousAccess | 182 | @AnonymousAccess |
176 | public ResultInfo changeMainAccount(@Validated @RequestBody TempIptvUser resources) { | 183 | public ResultInfo changeMainAccount(@Validated @RequestBody TempIptvUser resources) { |
184 | |||
185 | log.info("changeMainAccount ==> input ==> [{}]",resources); | ||
186 | |||
177 | UserTv userTv = new UserTv(); | 187 | UserTv userTv = new UserTv(); |
178 | BeanUtils.copyProperties(resources,userTv); | 188 | BeanUtils.copyProperties(resources,userTv); |
179 | Long memberId = resources.getMemberId(); | 189 | Long memberId = resources.getMemberId(); |
... | @@ -208,7 +218,7 @@ public class UserOperationController { | ... | @@ -208,7 +218,7 @@ public class UserOperationController { |
208 | @ApiOperation("微信小程序登录") | 218 | @ApiOperation("微信小程序登录") |
209 | @AnonymousAccess | 219 | @AnonymousAccess |
210 | public ResultInfo appletLogin(@Validated @RequestBody WeiXinUserBean resources) { | 220 | public ResultInfo appletLogin(@Validated @RequestBody WeiXinUserBean resources) { |
211 | 221 | log.info("appletLogin ==> input ==> [{}]",resources); | |
212 | UserWeixinDTO result = this.userTvOperationService.appletLogin(resources); | 222 | UserWeixinDTO result = this.userTvOperationService.appletLogin(resources); |
213 | return ResultInfo.success(result); | 223 | return ResultInfo.success(result); |
214 | } | 224 | } |
... | @@ -217,6 +227,7 @@ public class UserOperationController { | ... | @@ -217,6 +227,7 @@ public class UserOperationController { |
217 | @ApiOperation("微信小程序绑定大屏") | 227 | @ApiOperation("微信小程序绑定大屏") |
218 | @AnonymousAccess | 228 | @AnonymousAccess |
219 | public ResultInfo appletBind(@Validated @RequestBody BindBean resources) { | 229 | public ResultInfo appletBind(@Validated @RequestBody BindBean resources) { |
230 | log.info("appletBind ==> input ==> [{}]",resources); | ||
220 | String unionId = resources.getUnionid(); | 231 | String unionId = resources.getUnionid(); |
221 | if (StringUtils.isBlank(unionId)) | 232 | if (StringUtils.isBlank(unionId)) |
222 | Assert.state(StrUtil.isNotBlank(unionId), "跨屏绑定,请先进行授权"); | 233 | Assert.state(StrUtil.isNotBlank(unionId), "跨屏绑定,请先进行授权"); |
... | @@ -239,7 +250,7 @@ public class UserOperationController { | ... | @@ -239,7 +250,7 @@ public class UserOperationController { |
239 | public ResultInfo subscribe(@Validated @RequestBody SubscribeBeanEvent data) throws IOException { | 250 | public ResultInfo subscribe(@Validated @RequestBody SubscribeBeanEvent data) throws IOException { |
240 | String content = data.getContent(); | 251 | String content = data.getContent(); |
241 | 252 | ||
242 | log.info("subscribe content ==>> [{}]",content); | 253 | log.info("subscribe ==> input ==> [{}]",content); |
243 | 254 | ||
244 | SubscribeBean subscribeBean = JSONUtil.parseMsg2Object(content, SubscribeBean.class); | 255 | SubscribeBean subscribeBean = JSONUtil.parseMsg2Object(content, SubscribeBean.class); |
245 | this.parseSubscribe(subscribeBean); | 256 | this.parseSubscribe(subscribeBean); |
... | @@ -329,7 +340,7 @@ public class UserOperationController { | ... | @@ -329,7 +340,7 @@ public class UserOperationController { |
329 | @AnonymousAccess | 340 | @AnonymousAccess |
330 | public ResultInfo unsubscribe(@Validated @RequestBody SubscribeBeanEvent data) { | 341 | public ResultInfo unsubscribe(@Validated @RequestBody SubscribeBeanEvent data) { |
331 | String content = data.getContent(); | 342 | String content = data.getContent(); |
332 | log.info("unsubscribe content ==>> [{}]",content); | 343 | log.info("unsubscribe ==> input ==> [{}]",content); |
333 | 344 | ||
334 | SubscribeBean subscribeBean = JSONUtil.parseMsg2Object(content, SubscribeBean.class); | 345 | SubscribeBean subscribeBean = JSONUtil.parseMsg2Object(content, SubscribeBean.class); |
335 | boolean result = this.userTvOperationService.unsubscribe(subscribeBean); | 346 | boolean result = this.userTvOperationService.unsubscribe(subscribeBean); |
... | @@ -352,7 +363,7 @@ public class UserOperationController { | ... | @@ -352,7 +363,7 @@ public class UserOperationController { |
352 | @AnonymousAccess | 363 | @AnonymousAccess |
353 | public ResultInfo saveUserInfo(@RequestBody String data) { | 364 | public ResultInfo saveUserInfo(@RequestBody String data) { |
354 | 365 | ||
355 | log.info("保存大屏侧信息 ===>>> content ==>> [{}]",data); | 366 | log.info("saveUserInfo ==> input ==> [{}]",data); |
356 | Assert.notNull(data, "用户数据不可为空"); | 367 | Assert.notNull(data, "用户数据不可为空"); |
357 | 368 | ||
358 | JSONObject json = JSONObject.parseObject(data); | 369 | JSONObject json = JSONObject.parseObject(data); |
... | @@ -369,6 +380,7 @@ public class UserOperationController { | ... | @@ -369,6 +380,7 @@ public class UserOperationController { |
369 | @ApiOperation("保存用户手机号信息") | 380 | @ApiOperation("保存用户手机号信息") |
370 | @AnonymousAccess | 381 | @AnonymousAccess |
371 | public ResultInfo saveUserWeixinPhone(@RequestBody WeiXinUserBean resources) { | 382 | public ResultInfo saveUserWeixinPhone(@RequestBody WeiXinUserBean resources) { |
383 | log.info("saveUserWeixinPhone ==> input ==> [{}]",resources); | ||
372 | MemberProfile s = this.userTvOperationService.saveUserWeixinPhone(resources); | 384 | MemberProfile s = this.userTvOperationService.saveUserWeixinPhone(resources); |
373 | return ResultInfo.success(s); | 385 | return ResultInfo.success(s); |
374 | } | 386 | } | ... | ... |
-
Please register or sign in to post a comment