Browse Source

zhao:修改服务地址的请求地址

tags/录制修改前
耀 3 years ago
parent
commit
82d8f6770c
3 changed files with 2 additions and 17 deletions
  1. 1
    5
      XHWK.WKTool/App.config
  2. 0
    8
      XHWK.WKTool/App.cs
  3. 1
    4
      XHWK.WKTool/DAL/Interface.cs

+ 1
- 5
XHWK.WKTool/App.config View File

33
 		<add key="isRemind" value="" />
33
 		<add key="isRemind" value="" />
34
 		<!--是否为校外 1是 -->
34
 		<!--是否为校外 1是 -->
35
 		<add key="IsOutsideSchool" value="1" />
35
 		<add key="IsOutsideSchool" value="1" />
36
-		<!--服务地址请求地址-->
37
-		<add key="ServiceAddressAPI" value="http://scapitest.xhkjedu.com" />
38
-		<!--<add key="ServiceAddressAPI" value="https://certapi.xhkjedu.com" />-->
39
 		<!--API请求地址-->
36
 		<!--API请求地址-->
40
 		<add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com" />
37
 		<add key="APIRequestAddress" value="http://schoolapi.xhkjedu.com" />
41
 		<!--文件平台请求地址-->
38
 		<!--文件平台请求地址-->
43
 		<!--展示文件服务器请求地址-->
40
 		<!--展示文件服务器请求地址-->
44
 		<add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com" />
41
 		<add key="SchoolfileRequestAddress" value="http://schoolfile.xhkjedu.com" />
45
 		<!--认证请求地址-->
42
 		<!--认证请求地址-->
43
+		<!--<add key="CertapiRequestAddress" value="http://scapitest.xhkjedu.com" />-->
46
 		<add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com" />
44
 		<add key="CertapiRequestAddress" value="http://certapi.xhkjedu.com" />
47
-		<!--TQL铺码API-->
48
-		<add key="TmatrixCode" value="http://111.231.240.239:8030" />
49
 		<!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
45
 		<!--摄像头位置 1.右上 2.左上 3.右下 4.左下-->
50
 		<add key="CameraPosition" value="1" />
46
 		<add key="CameraPosition" value="1" />
51
 		<!--上传每片大小 Mb-->
47
 		<!--上传每片大小 Mb-->

+ 0
- 8
XHWK.WKTool/App.cs View File

45
         /// </summary>
45
         /// </summary>
46
         public static Model_ServiceAddress ServiceAddress = null;
46
         public static Model_ServiceAddress ServiceAddress = null;
47
         /// <summary>
47
         /// <summary>
48
-        /// 服务地址API
49
-        /// </summary>
50
-        public static string ServiceAddressAPI = isDebug ? "http://scapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("ServiceAddressAPI");
51
-        /// <summary>
52
         /// 接口地址
48
         /// 接口地址
53
         /// </summary>
49
         /// </summary>
54
         public static string apiUrl = isDebug ? "http://schoolapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("APIRequestAddress");
50
         public static string apiUrl = isDebug ? "http://schoolapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("APIRequestAddress");
64
         /// 认证接口地址
60
         /// 认证接口地址
65
         /// </summary>
61
         /// </summary>
66
         public static string certapiUrl = isDebug ? "http://certapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("CertapiRequestAddress");
62
         public static string certapiUrl = isDebug ? "http://certapitest.xhkjedu.com" : FileToolsCommon.GetConfigValue("CertapiRequestAddress");
67
-        /// <summary>
68
-        /// TQL铺码服务地址
69
-        /// </summary>
70
-        public static string TmatrixCodeURL = FileToolsCommon.GetConfigValue("TmatrixCode");
71
         #endregion
63
         #endregion
72
 
64
 
73
         #region 配置项
65
         #region 配置项

+ 1
- 4
XHWK.WKTool/DAL/Interface.cs View File

13
 {
13
 {
14
     public class Interface
14
     public class Interface
15
     {
15
     {
16
-        //private string APIRequestAddress = FileToolsCommon.GetConfigValue("APIRequestAddress");
17
-        //private string FileRequestAddress = FileToolsCommon.GetConfigValue("FileRequestAddress");
18
-        //private string schoolfileRequestAddress = FileToolsCommon.GetConfigValue("schoolfileRequestAddress");
19
         /// <summary>
16
         /// <summary>
20
         /// 激活信息--添加
17
         /// 激活信息--添加
21
         /// </summary>
18
         /// </summary>
328
         /// <returns></returns>
325
         /// <returns></returns>
329
         public bool GetServiceAddress(string Schoolcode, out string Message)
326
         public bool GetServiceAddress(string Schoolcode, out string Message)
330
         {
327
         {
331
-            string url = APP.ServiceAddressAPI + "/school/find_code";//地址
328
+            string url = APP.certapiUrl + "/school/find_code";//地址
332
 
329
 
333
             Dictionary<string, object> dic = new Dictionary<string, object>
330
             Dictionary<string, object> dic = new Dictionary<string, object>
334
             {
331
             {

Loading…
Cancel
Save