发货机优化

master
mashiyu 2018-06-26 11:30:38 +08:00
parent 528a33aa9a
commit 067aea691f
3 changed files with 8 additions and 26 deletions

View File

@ -54,11 +54,9 @@ public class IAPManagerController {
String channel_id = map.get("channel_id");
String token = map.get("token");
String final_appkey;
String final_appkey = YsjConstant.Midas_Buy_Ios_Appkey_Test;
if (sendBox == 0){
final_appkey = YsjConstant.Midas_Buy_Ios_Appkey;
}else {
final_appkey = YsjConstant.Midas_Buy_Ios_Appkey_Test;
}
LOGGER.info("final_appkey : "+ final_appkey);
@ -93,8 +91,8 @@ public class IAPManagerController {
try {
LOGGER.info("before RPC ... ");
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
// result = rPCClient.getClient().iapDeliveryGood(openid,userId,payitem,billno,amt,channel_id,token);
result = rPCClient.getClient().testdeliveryGood(userId,"1002#200#2");
result = rPCClient.getClient().iapDeliveryGood(openid,userId,payitem,billno,amt,channel_id,token);
// result = rPCClient.getClient().testdeliveryGood(userId,"1002#200#2");
LOGGER.info("after RPC ... ");
} catch (Exception e) {
e.printStackTrace();

View File

@ -61,7 +61,7 @@ public class ManagerController {
int gameServer = Integer.parseInt(serverParam[2]);
int area = Integer.parseInt(serverParam[3]);
int userId = Integer.parseInt(serverParam[4]);
int online = Integer.parseInt(serverParam[5]);
int sendBox = Integer.parseInt(serverParam[5]);
String serverOrder = serverParam[6];
String openid = map.get("openid");
@ -71,15 +71,9 @@ public class ManagerController {
String channel_id = map.get("channel_id");
String token = map.get("token");
String final_appkey;
if (online == 0 && plat == 1){
String final_appkey = YsjConstant.Midas_Buy_Android_Appkey_Test;
if (sendBox == 0){
final_appkey = YsjConstant.Midas_Buy_Android_Appkey;
}else if (online == 0 && plat == 0){
final_appkey = YsjConstant.Midas_Buy_Ios_Appkey;
}else if (online == 1 && plat == 0){
final_appkey = YsjConstant.Midas_Buy_Ios_Appkey_Test;
}else {
final_appkey = YsjConstant.Midas_Buy_Android_Appkey_Test;
}
LOGGER.info("final_appkey : "+ final_appkey);

View File

@ -5,30 +5,20 @@ package com.jmfy.util;
*/
public class YsjConstant {
public static String Midas_Buy_Goods = "/v3/r/mpay/buy_goods_m";
public static String Test_Midas_Buy_Goods = "/mpay/buy_goods_m";
public static String Midas_Buy_Android_Appid = "1450013496";
public static String Midas_Buy_Ios_Appid = "1450013495";
// public static String Midas_Buy_Android_Appkey = "l3JABkBf3iOWXGlFomyr9v8zTGMIFc27";
public static String Midas_Buy_Android_Appkey = "LAhW7WH0jVRjGVkj1wL3fG1YJmCcO6TR";//TODO
public static String Midas_Buy_Android_Appkey = "l3JABkBf3iOWXGlFomyr9v8zTGMIFc27";
public static String Midas_Buy_Android_Appkey_Test = "LAhW7WH0jVRjGVkj1wL3fG1YJmCcO6TR";
public static String Midas_Buy_Ios_Appkey = "IJBg5GkaG3bfKhWJPfx8nzBTIwy04Uii";//TODO
public static String Midas_Buy_Ios_Appkey = "ntE3qTl1ZjSMurlwGvFLmPM6G1u3DKLX";
public static String Midas_Buy_Ios_Appkey_Test = "IJBg5GkaG3bfKhWJPfx8nzBTIwy04Uii";
public static String protocol_http = "http";
public static String protocol_https = "https";