no message
This commit is contained in:
@ -20,6 +20,9 @@ public class VerifyController {
|
||||
@Autowired
|
||||
private MeiTuanService meituanService;
|
||||
|
||||
@Autowired
|
||||
private DouyinService douyinService;
|
||||
|
||||
@ApiOperation(value = "接收美团Token数据接口")
|
||||
@GetMapping("/authorization")
|
||||
public Result<String> authorization(@RequestParam("code") String code, @RequestParam("sign") String sign, @RequestParam("developerId") Long developerId, @RequestParam("businessId") int businessId,
|
||||
@ -31,5 +34,11 @@ public class VerifyController {
|
||||
return Result.ok(meituanService.getAccessToken(code,state));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "美团验券接口")
|
||||
@GetMapping("/meituan")
|
||||
public Result<String> meituan(@RequestParam("pid") String pid, @RequestParam("tid") String tid){
|
||||
return Result.ok(douyinService.cancel(pid,tid));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@ public interface DouyinService {
|
||||
|
||||
CertificateVerifyResponse verify(CertificateVerifyRequest req);
|
||||
|
||||
CertificateCancelResponse cancel(String certificateId, String verifyId) ;
|
||||
CertificateCancelResponse cancel(String paymentId,String transactionId) ;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -121,10 +121,10 @@ public class DouyinServiceImpl implements DouyinService {
|
||||
return sdkResponse;
|
||||
|
||||
} catch (TeaException e) {
|
||||
throw new RuntimeException("券验证失败");
|
||||
throw new RuntimeException("券验证失败:"+e.message);
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("券验证失败");
|
||||
throw new RuntimeException("券验证失败: "+e.getMessage());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user