|
|
|
@ -30,6 +30,7 @@ import com.hfkj.service.pay.huift.TradeService; |
|
|
|
|
import com.jd.open.api.sdk.domain.vopsp.CategoryInfoGoodsProvider.response.getCategoryInfoList.GetCategoryInfoGoodsResp; |
|
|
|
|
import com.jd.open.api.sdk.domain.vopsp.SkuInfoGoodsProvider.response.getSkuDetailInfo.GetSkuPoolInfoGoodsResp; |
|
|
|
|
import com.jd.open.api.sdk.domain.vopxx.MsgRecordProvider.response.queryTransByVopNormal.VopBizTransMessage; |
|
|
|
|
import com.jd.open.api.sdk.response.vopdd.VopOrderQueryOrderDetailResponse; |
|
|
|
|
import com.jd.open.api.sdk.response.vopdz.VopAddressConvertFourAreaByDetailStrResponse; |
|
|
|
|
import com.jd.open.api.sdk.response.vopxx.VopMessageQueryTransByVopNormalResponse; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
@ -170,7 +171,45 @@ public class TestController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/queryOrderDetailByJd",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "queryOrderDetailByJd") |
|
|
|
|
public ResponseData queryOrderDetailByJd(@RequestParam(value = "childOrderNo" , required = true) String childOrderNo, |
|
|
|
|
@RequestParam(value = "thirdOrderNo" , required = true) Long thirdOrderNo) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
VopOrderQueryOrderDetailResponse orderDetailResponse = JdPostService.queryOrderDetail(jdService.getToken(),thirdOrderNo, childOrderNo); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(orderDetailResponse); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/sign",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "sign") |
|
|
|
|
public ResponseData sign(@RequestParam(value = "phone" , required = true) String phone, |
|
|
|
|
@RequestParam(value = "appid" , required = true) String appid, |
|
|
|
|
@RequestParam(value = "appSecret" , required = true) String appSecret) { |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
|
map.put("appid" , appid); |
|
|
|
|
map.put("phone" , phone); |
|
|
|
|
String sign = SignatureUtil.createSign(map , appSecret); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(sign); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 查询上游订单
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getSkuDetailInfo",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|