Browse Source

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

tags/录制修改前
耀 4 years ago
parent
commit
a43f99c8a0
2 changed files with 8 additions and 3 deletions
  1. 1
    1
      XHWK.WKTool/App.config
  2. 7
    2
      XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs

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

4
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
4
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5
     </startup>
5
     </startup>
6
   <appSettings>
6
   <appSettings>
7
-    <add key="IsDebug" value="0"/>
7
+    <add key="IsDebug" value="1"/>
8
     <!--图片压缩等级-->
8
     <!--图片压缩等级-->
9
     <add key="ImageCompressionLevel" value="30" />
9
     <add key="ImageCompressionLevel" value="30" />
10
     <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->
10
     <!--文件存放路径  路径\账户名\讲解名称_x.MP4-->

+ 7
- 2
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

597
                 MessageWindow.Show("下载地址未输入");
597
                 MessageWindow.Show("下载地址未输入");
598
                 return;
598
                 return;
599
             }
599
             }
600
-            if (!APP.apiUrl.Equals(txbInterfaceAddress.Text))
600
+            if (!APP.apiUrl.Equals("http://" + txbInterfaceAddress.Text))
601
             {
601
             {
602
                 APP.apiUrl = "http://" + txbInterfaceAddress.Text;
602
                 APP.apiUrl = "http://" + txbInterfaceAddress.Text;
603
-                LoginType();
603
+              
604
+                if(!txbLoginType.Text.Equals("未登录"))
605
+                {
606
+                    LoginType();
607
+                    MessageWindow.Show("接口地址已修改,请重新登陆!");
608
+                }
604
             }
609
             }
605
             if (!APP.uploadUrl.Equals(txbImageUploadAddress.Text))
610
             if (!APP.uploadUrl.Equals(txbImageUploadAddress.Text))
606
             {
611
             {

Loading…
Cancel
Save