调整远程调用接口

上级 46c5775e
流水线 #8511 已失败 于阶段
in 14 秒
......@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
......@@ -59,5 +60,5 @@ public interface UserAppApi {
List<UserAccountSimpleDTO> feignListAppUserAccount(@ApiParam(value = "账号查询QO", required = true) @RequestBody UserAccountQO userAccountQO, @RequestHeader("token") String token);
@GetMapping("/userapp/message/timeTypeById")
Integer timeTypeById(@RequestParam Integer typeId);
Integer timeTypeById(@RequestParam Integer typeId, @RequestHeader("token") String token, @RequestHeader HttpServletRequest request);
}
......@@ -76,7 +76,7 @@ public class WechatPayServiceImpl implements WechatPayService {
throw new RuntimeException("服务器内部错误!");
}
if(orderRequestParamsVO.getChatType() != null && orderRequestParamsVO.getOrderPort() == 7){
Integer integer = userAppApi.timeTypeById(orderRequestParamsVO.getChatType()) ;
Integer integer = userAppApi.timeTypeById(orderRequestParamsVO.getChatType(), request.getHeader("token"),request ) ;
orderRequestParamsVO.setAmount(integer);
}
Config config = wxConfigUtils.createConfig();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论