Bladeren bron

修改来客吧L版的请求地址

lcl 6 maanden geleden
bovenliggende
commit
7fe360c273
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      AppStart/Helper/PublicImportDataService.cs

+ 6 - 2
AppStart/Helper/PublicImportDataService.cs

@@ -1108,8 +1108,8 @@ namespace MySystem
         string lkbMfe88PublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC9w73juFDZe2n+D4Izav/B3VmkjP1b4wkc/4rv72DeK8uwGx1qWuEm+S5leG7v1YeyNXkTm/DW2I+iAJhvn+ILMErJCc8TK7hZlrzirhMTZtGB52Ai9IIi/SmpZtF9e2BV3S0feEvT83bi3ShnJDvsFsy6f0f/My63aNfjFcdaXwIDAQAB";
         string lkbClientPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3YYYwaQyl+poYl+CQEFiLjQi7R0LEG73360Wup4frAy0zPZYlch3MwUChA7gPXVND/bUY+6vzJ3mkeoFvFtOkhrV0Wm8PWWnBVzanq3P91rFqMljMQlNxz4nBNeH2yHX9lCf6HQCYfjsYtadrGyUQw3ZMs+b0sMI2nZe/oKZo1wIDAQAB";
         string lkbClientPrivateKey = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALdhhjBpDKX6mhiX4JAQWIuNCLtHQsQbvffrRa6nh+sDLTM9liVyHczBQKEDuA9dU0P9tRj7q/MneaR6gW8W06SGtXRabw9ZacFXNqerc/3WsWoyWMxCU3HPicE14fbIdf2UJ/odAJh+Oxi1p2sbJRDDdkyz5vSwwjadl7+gpmjXAgMBAAECgYA4+QKgvbJhSsdfRqhM+dcYnBuPW6dhmCDgCmdeyMvQdu8vET45qgeaGpxCqg4gL+VzpToDZgVZCPWg5TKbWeMsnjHJ4o3e/SYywRufHGDougTjYQcc4jZLjbefbGAbRIoSdZcYoJS9SOlFsSTyk5zkNmvFvxDH1mlw7ooYFmEi8QJBAO5vs6+wxuEwrYxm/y7tRuOUuIRuHv/HfRRPwTZUJMwR7YeQJ8HqWPZr8QukiE2YL+j7pEy/zscgW6tmAZzbNskCQQDE455wVPoWxFADaQvzrksWGF0qEce1ppnqf8DoHHQYQtUF3z8art/Kg8wJ/GbZxytR2REZzzaeqw3uGFyn21KfAkB44QZelqds+OmzGXBbkQ10SSx2bwGmOLNvvbM9YNE66AfcxzdwtucdHsIYXfSAKhx36EN2aXNiPkRbE57Tr8sJAkACPPgrHLwvEBI8x6/sGDogSSyd8s/LX9Z2FPeza8diEzhqtav4+K3wlmj2YBknNp1mc8o++d0MFrO01jAPdG3PAkBvAD3lZvd4m10Q92ikomH79IeQRh5mEBxfUsDXk+khHzjONmYgpo46TQBZ1okNW0amIemQhBbs/bEZZUGukPdn";
-        string lkbReqUrl = "https://fire-api.mfe88.com/channel-app/api/terminal/serviceFeeSet";
-        string lkbReqUrl2 = "https://fire-api.mfe88.com/channel-app/api/rate/update";
+        string lkbReqUrl = "https://lkb-fire-api.ileshua.com/channel-app/api/terminal/serviceFeeSet";
+        string lkbReqUrl2 = "https://lkb-fire-api.ileshua.com/channel-app/api/rate/update";
         
         public bool LkbVerify()
         {
@@ -1161,12 +1161,16 @@ namespace MySystem
             string rfc1123FormattedTime = currentTime.ToString("r");
             headers.Add("X-Time", rfc1123FormattedTime);
             headers.Add("X-Trace", function.get_Random(32));
+            function.WriteLog("请求地址\n" + lkbReqUrl, "来客吧L吧设置服务费");
             string content = "{\"factorySequenceNo\":\"" + sn + "\",\"serviceFee\":\"" + serviceFee.ToString("f0") + "\",\"agencyNo\":\"" + lkbClientId + "\"}";
+            function.WriteLog("明文参数\n" + content, "来客吧L吧设置服务费");
             content = LkbEncrypt(content);
             string signstr = LkbSign(content);
             headers.Add("X-Sign", signstr);
             string req = "{\"param\":\"" + content + "\"}";
+            function.WriteLog("加密参数\n" + req, "来客吧L吧设置服务费");
             string result = function.PostWebRequest(lkbReqUrl, req, headers, "application/json");
+            function.WriteLog("返回报文\n" + result + "\n\n\n", "来客吧L吧设置服务费");
             return result;
         }
         // public string LkbSetFee(string sn, decimal fee = 0.6M)