Handy_Cao 4 роки тому
батько
коміт
e07fbee8d4

+ 7 - 0
MTP_iOS/MTP2_iOS/BusinessCore/Account/AccountManager.swift

@@ -412,6 +412,13 @@ class AccountManager: BaseManager {
                             group.leave()
                         }
                         
+                        /// 错误码和终端配置信息,不影响主界面逻辑
+                        group.enter()
+                        accountManager.configQueryPostting(callback: { (configs, _) in
+                            dPrint("[\(#function)] \(configs ? "错误码和终端配置信息成功" : "错误码和终端配置信息失败")")
+                            group.leave()
+                        })
+                        
                         /// 查询用户是否已实名认证
                         group.enter()
                         accountManager.getUserAuthStatus(callBack: { (isCompleted, _) in

+ 5 - 7
MTP_iOS/MTP2_iOS/BusinessCore/Bank/BankManager.swift

@@ -200,14 +200,14 @@ class BankManager: BaseManager {
         if var reqPacket = BankAdapter.packetByBankcancelReq(param: param) {
             networkManager.sendData(packet: &reqPacket, rspMainClassCode: nil) { (isCompleted, error, rspPacket) in
                 if !isCompleted {
-                    //发送信息失败
+                    /// 发送信息失败
                     callback(false,nil,nil)
                     return
                 }
                 
                 BankAdapter.analyByBankCancelRsq(packet: rspPacket as! MTP2SocketPacket50, callback: { (isCompleted, error, bankCancel) in
                     if !isCompleted{
-                        //报文解析失败
+                        /// 报文解析失败
                         callback(false,error,nil)
                         return
                     }
@@ -512,15 +512,13 @@ class BankManager: BaseManager {
             callback(false, error, nil)
             return
         }
-        // 构建查询参数
+        /// 构建查询参数
         let param = ("cusBankId", cusBankId)
-        
-        
-        // 调用通用查询方法
+        /// 调用通用查询方法
         QueryCommonHelper.queryCommon(statement: Statement.QUERYBANKINFO, targetClass: MoBankInfo.self, params: [param]) {
             isCompleted, error, results, protobufInfos in
             if !isCompleted {
-                // 查询失败
+                /// 查询失败
                 callback(false, error, nil)
                 return
             }

+ 1 - 1
MTP_iOS/MTP2_iOS/Resource/PlistFiles/Address/LYB_171.plist

@@ -179,7 +179,7 @@
 			<key>bankUrl</key>
 			<string>http://192.168.31.178:20031/bank_scancode</string>
 			<key>areaUrl</key>
-			<string>http://192.168.31.171:8080/cfg?key=test_171</string>
+			<string>http://192.168.31.183:8080/cfg?key=test_183</string>
 		</dict>
 	</array>
 </dict>

+ 1 - 1
MTP_iOS/MTP2_iOS/Resource/PlistFiles/Config.plist

@@ -3,6 +3,6 @@
 <plist version="1.0">
 <dict>
 	<key>appVersion</key>
-	<string>LYB_171</string>
+	<string>LYB</string>
 </dict>
 </plist>