补充日志
This commit is contained in:
@ -35,10 +35,16 @@ public class VerifyController {
|
||||
}
|
||||
|
||||
@ApiOperation(value = "美团验券接口")
|
||||
@GetMapping("/meituan")
|
||||
public Result<String> meituan(@RequestParam("pid") String pid, @RequestParam("tid") String tid){
|
||||
@GetMapping("/douyin")
|
||||
public Result<String> douyin(@RequestParam("pid") String pid, @RequestParam("tid") String tid){
|
||||
return Result.ok(douyinService.cancel(pid,tid));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "美团验券接口")
|
||||
@GetMapping("/meituan")
|
||||
public Result<String> meituan(@RequestParam("cid") String cid, @RequestParam("did") String did){
|
||||
return Result.ok(meituanService.reverseconsume(49, cid, did));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ public class MeiTuanServiceImpl implements MeiTuanService {
|
||||
String appAuthToken = getAppAuthToken(req.getStoreId().intValue()).getMtToken();
|
||||
|
||||
MeituanResponse<TuangouReceiptPrepareResponse> response = meituanClient.invokeApi(tuangouReceiptPrepareRequest, appAuthToken);
|
||||
|
||||
log.info("美团验券响应结果: {}", JSONObject.toJSONString(response));
|
||||
if (response.isSuccess()) {
|
||||
log.info("美团验券响应结果: {}", JSONObject.toJSONString(response));
|
||||
} else {
|
||||
@ -140,7 +140,7 @@ public class MeiTuanServiceImpl implements MeiTuanService {
|
||||
|
||||
|
||||
MeituanResponse<TuangouReceiptReverseconsumeResponse> response = meituanClient.invokeApi(tuangouReceiptReverseconsumeRequest, companyStoreDTO.getMtToken());
|
||||
|
||||
log.info("美团撤销验券响应结果: {}", JSONObject.toJSONString(response));
|
||||
if (response.isSuccess()) {
|
||||
TuangouReceiptReverseconsumeResponse resp = response.getData();
|
||||
log.info("美团撤销验券响应结果: {}", JSONObject.toJSONString(response));
|
||||
|
||||
Reference in New Issue
Block a user