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