Commit ef1cf337 authored by Su-Yi's avatar Su-Yi

修改回调逻辑、tku

parent deda46e5
...@@ -139,7 +139,11 @@ public class Pay { ...@@ -139,7 +139,11 @@ public class Pay {
Assert.assertTrue(result,network.message(callbackParams,PAY_CALLOUT,"mock微信支付回调失败,但我们订单处理也失败",response.body().asString())); Assert.assertTrue(result,network.message(callbackParams,PAY_CALLOUT,"mock微信支付回调失败,但我们订单处理也失败",response.body().asString()));
// mock微信回调成功 // mock微信回调成功
response = network.postResponse(payParams,PAY_ORDERCREATE);
tradeNo = response.jsonPath().getString("data.tradeNo");
callbackParams.put("tradeNo",tradeNo);
callbackParams.put("payResult",true); callbackParams.put("payResult",true);
response = network.getResponse(callbackParams,PAY_CALLOUT); response = network.getResponse(callbackParams,PAY_CALLOUT);
result = response.jsonPath().getBoolean("data"); result = response.jsonPath().getBoolean("data");
Assert.assertTrue(result,network.message(callbackParams,PAY_CALLOUT,"mock微信支付回调成功,但我们订单处理失败",response.body().asString())); Assert.assertTrue(result,network.message(callbackParams,PAY_CALLOUT,"mock微信支付回调成功,但我们订单处理失败",response.body().asString()));
...@@ -151,7 +155,7 @@ public class Pay { ...@@ -151,7 +155,7 @@ public class Pay {
apiCount += 7; apiCount += 7;
// 切换为保险版vip // 切换为保险版vip
// ManagerUtil.switchvip(); ManagerUtil.switchvip();
//延迟2秒 //延迟2秒
Thread.sleep(2000); Thread.sleep(2000);
......
...@@ -10,7 +10,7 @@ public class BasicConfig { ...@@ -10,7 +10,7 @@ public class BasicConfig {
// 用户微信昵称 // 用户微信昵称
public static final String WECHAT_NAME = "小疙瘩人寿"; //true public static final String WECHAT_NAME = "小疙瘩人寿"; //true
// 用户tku // 用户tku
public static final String AGENT_TKU = "T3gM31f18jAWCfZp1kutcdwvn2GBWnjyDp7LueJfX3YbNifexxBgXmBrd8AUCxJDDCLYZKF9waTJpTqDpK"; public static final String AGENT_TKU = "T3gM31f18jAWCsXW1UG8R8APmD6DCd3FZdTj6LC27JQpLqwSBR6Jso7ceK5azRdKHRuWjmtxrDAUopQXRp";
// 小疙瘩的openid // 小疙瘩的openid
public static final String OPEN_ID = "osi5w5ucTy5jRR0zw7hLNJm1S3xY"; public static final String OPEN_ID = "osi5w5ucTy5jRR0zw7hLNJm1S3xY";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment