zhengjie 1 år sedan
förälder
incheckning
ddf1481b07
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 1 1
      Business/MobilePay.cs
  2. 2 0
      Helper/InvokeRestCenter.cs

+ 1 - 1
Business/MobilePay.cs

@@ -53,7 +53,7 @@ namespace PTMedicalInsurance.Business
         private void initAppConfig()
         {
             string platform = JsonHelper.getDestValue(joInsuAdmObj, "platform");
-            if (string.IsNullOrEmpty(platform)) platform = "wxpay";
+            if (string.IsNullOrEmpty(platform) || "WECHAT".Equals(platform.ToUpper())) platform = "wxpay";
 
             // TODO:应从数据库中获取配置
             IniFile ini = new IniFile(Global.curEvt.path + @"\INSUConfigure.ini");

+ 2 - 0
Helper/InvokeRestCenter.cs

@@ -49,6 +49,8 @@ namespace PTMedicalInsurance.Helper
                 request.Headers.Add("_api_signature", signature);
                 request.Headers.Add("_api_access_key", Global.inf.AK);
 
+                Global.writeLog("call api (ak):" + Global.inf.AK + "(sk):"+Global.inf.SK);
+
                 //设置参数,并进行URL编码 
                 string paraUrlCoded = inputData;//System.Web.HttpUtility.UrlEncode(jsonParas);   
                 byte[] payload;