|
|
|
@ -7,6 +7,7 @@ import com.hai.common.exception.ErrorHelp; |
|
|
|
|
import com.hai.common.exception.SysCode; |
|
|
|
|
import com.hai.common.pay.util.sdk.WXPayConstants; |
|
|
|
|
import com.hai.common.utils.*; |
|
|
|
|
import com.hai.config.CommonSysConst; |
|
|
|
|
import com.hai.dao.HighUserEtcMapper; |
|
|
|
|
import com.hai.entity.HighDiscountAgentCode; |
|
|
|
|
import com.hai.entity.HighUser; |
|
|
|
@ -137,23 +138,23 @@ public class HighTestServiceImpl implements HighTestService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public JSONObject getMobile(String phone) throws Exception { |
|
|
|
|
public JSONObject getMobile(String phone , Integer amount , String orderNo) throws Exception { |
|
|
|
|
|
|
|
|
|
String timestamp = String.valueOf(System.currentTimeMillis()); |
|
|
|
|
|
|
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
|
map.put("mobile" , "18090580471"); |
|
|
|
|
map.put("amount" , "30"); |
|
|
|
|
map.put("out_order_id" , "CZ" + DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + IDGenerator.nextId(5)); |
|
|
|
|
map.put("app_key" , "eaomqcbpdz7yjfih"); |
|
|
|
|
map.put("mobile" , phone); |
|
|
|
|
map.put("amount" , amount); |
|
|
|
|
map.put("out_order_id" , orderNo); |
|
|
|
|
map.put("app_key" , CommonSysConst.getSysConfig().getCzAppKey()); |
|
|
|
|
map.put("timestamp" , timestamp.substring(0,timestamp.length()-3)); |
|
|
|
|
map.put("is_fast" , "1"); |
|
|
|
|
map.put("notify_url" , "https://hsgcs.dctpay.com/crest/czOrder/orderRefundNotify"); |
|
|
|
|
map.put("notify_url" , CommonSysConst.getSysConfig().getCzNotifyUrl()); |
|
|
|
|
|
|
|
|
|
String signStr = WxUtils.generateSignatureAppSecret(map, "xkf9eoq2cjh6uvzp0mtrga134lnibdw8" , WXPayConstants.SignType.MD5); |
|
|
|
|
String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getTelApiSecret() , WXPayConstants.SignType.MD5); |
|
|
|
|
|
|
|
|
|
map.put("sign" , signStr); |
|
|
|
|
|
|
|
|
|
return HttpsUtils.doPost("https://hfcs.dmjvip.com/index.php/third/mobile/createOrder" , map); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getCzUrl() , map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|