|
|
@@ -140,17 +140,17 @@ public class UserInfoCollectionController extends AppBaseController {
|
|
|
@PostMapping("/submitCollectionAnswerParam")
|
|
|
public R submitCollectionAnswerParam(@RequestBody SubmitCollectionAnswerParam param)
|
|
|
{
|
|
|
- long userId;
|
|
|
- try {
|
|
|
- String userIdStr = getUserId();
|
|
|
- if (StringUtils.isEmpty(userIdStr)) {
|
|
|
- throw new CustomException("请登录");
|
|
|
- }
|
|
|
- userId = Long.parseLong(userIdStr);
|
|
|
- } catch (Exception e) {
|
|
|
- return R.error(401, "未登录");
|
|
|
- }
|
|
|
- param.setUserId(userId);
|
|
|
+// long userId;
|
|
|
+// try {
|
|
|
+// String userIdStr = getUserId();
|
|
|
+// if (StringUtils.isEmpty(userIdStr)) {
|
|
|
+// throw new CustomException("请登录");
|
|
|
+// }
|
|
|
+// userId = Long.parseLong(userIdStr);
|
|
|
+// } catch (Exception e) {
|
|
|
+// return R.error(401, "未登录");
|
|
|
+// }
|
|
|
+ param.setUserId(Long.parseLong(getUserId()));
|
|
|
int result = userInformationCollectionService.submitCollectionAnswerParam(param);
|
|
|
if (result > 0) {
|
|
|
return R.ok();
|