|
@@ -69,11 +69,10 @@ public class YppApi {
|
|
|
* 支付订单(支付成功后调用)
|
|
|
*
|
|
|
* @param orderId
|
|
|
- * @param mobile
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject pay_order(String orderId) {
|
|
|
- String entries = httpGet("https://channel.youpiaopiao.cn/api/movie/pay_order?id=" + orderId + "&test="+test);
|
|
|
+ String entries = httpGet("https://channel.youpiaopiao.cn/api/movie/pay_order?id=" + orderId + "&test=" + test);
|
|
|
return JSONUtil.parseObj(entries);
|
|
|
|
|
|
}
|
|
@@ -328,8 +327,16 @@ public class YppApi {
|
|
|
String token = getoken();
|
|
|
post.header("Authorization", token);
|
|
|
}
|
|
|
+
|
|
|
+ ApiLog apiLog = new ApiLog();
|
|
|
+ apiLog.setRequest(url);
|
|
|
+ apiLog.setSystem("ypp");
|
|
|
+ apiLog.setService(url);
|
|
|
HttpResponse execute = post.body(JSONUtil.toJsonStr(body)).execute();
|
|
|
String response = execute.body();
|
|
|
+ apiLog.setRequest(JSONUtil.toJsonStr(body));
|
|
|
+ apiLog.setResponse(response);
|
|
|
+ apiLogDao.save(apiLog);
|
|
|
JSONObject entries = JSONUtil.parseObj(response);
|
|
|
Integer code = (Integer) entries.get("code");
|
|
|
Assert.isTrue(code.equals(0), String.valueOf(entries.get("message")));
|