补充日志

This commit is contained in:
2025-10-30 10:17:49 +08:00
parent 5bfdfe6b92
commit b0442a2d7b
2 changed files with 10 additions and 4 deletions

View File

@ -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));
}
}

View File

@ -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));