|
|
|
@ -51,12 +51,13 @@ public class TestController { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private BsUserService bsUserService; |
|
|
|
|
@Resource |
|
|
|
|
private BsUserContributeService userContributeService; |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getPublisherInfo",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "淘宝客-公用-私域用户备案") |
|
|
|
|
public ResponseData getPublisherInfo(@RequestParam(value = "code" , required = false) String code |
|
|
|
|
) { |
|
|
|
|
public ResponseData getPublisherInfo(@RequestParam(value = "code" , required = false) String code) { |
|
|
|
|
try { |
|
|
|
|
// 用户session
|
|
|
|
|
UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class); |
|
|
|
@ -78,7 +79,25 @@ public class TestController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/purchase",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "会员贡献测试") |
|
|
|
|
public ResponseData purchase(@RequestParam(value = "rebate" , required = true) BigDecimal rebate, |
|
|
|
|
@RequestParam(value = "userId" , required = true) Long userId) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
Map<String,Object> otherParam = new HashMap<>(); |
|
|
|
|
otherParam.put("sourceId", System.currentTimeMillis()); |
|
|
|
|
otherParam.put("sourceOrderNo", System.currentTimeMillis()); |
|
|
|
|
userContributeService.purchase(rebate, userId, otherParam); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|