Browse Source

修复关闭数字货币时检索进去crash

lintong 4 weeks ago
parent
commit
c34237be97

+ 3 - 3
Koala/Koala/Modular/Deal/V/Deal/Views/Order/KKOrderModificationAlert.swift

@@ -146,7 +146,7 @@ class KKOrderModificationAlert: UIView, KKAlertProtol {
     
     var model:JDPositionModel?
     var accountModel:JDTradeAccountModel?
-    let spread:Decimal = 0.05
+    let spread:Decimal = 0.5
     var type:PositionOrderModifierType = .modifyingHoldingOrders
     
     convenience init(model: JDPositionModel, accountModel: JDTradeAccountModel, type:PositionOrderModifierType = .modifyingHoldingOrders) {
@@ -181,8 +181,8 @@ class KKOrderModificationAlert: UIView, KKAlertProtol {
         
         let isAsk =  model.cmd == "1" || model.cmd == "3" || model.cmd == "5"
         
-        self.slEditItem.tipLabel.text = switchLanguage("止损价") + (isAsk ? "(高于当前价\(spread)或%5)" : "(低于当前价\(spread)或%5)")
-        self.spEditItem.tipLabel.text = switchLanguage("止盈价") + (isAsk ? "(低于当前价\(spread)或%5)" : "(高于当前价\(spread)或%5)")
+        self.slEditItem.tipLabel.text = (isAsk ? switchLanguage("止损价至少高于现价") : switchLanguage("止损价至少低于现价")) + "\(spread)或%5"
+        self.spEditItem.tipLabel.text = (isAsk ? switchLanguage("止盈价至少低于现价") : switchLanguage("止盈价至少高于现价")) + "\(spread)或%5"
         
         updateCurrentPrice()
     }

+ 6 - 2
Koala/Koala/Modular/Market/V/MarketDetailView/MDAuoteView/MDAuoteView.swift

@@ -312,8 +312,12 @@ class MDAuoteView: BaseView {
                         BaseProductList.shareInstance.updateProductInfo(model: model)
                     }
                 }
-                self.symbolModel = dataArray.first
-                self.VM?.symbolModel.enable = dataArray.first!.enable
+                
+                if(dataArray.count > 0){
+                    self.symbolModel = dataArray.first
+                    self.VM?.symbolModel.enable = dataArray.first!.enable
+                }
+                
                 if self.isRefresh && !self.isScrolling {
                     self.tableView.reloadData()
                 }

+ 1 - 1
Koala/Koala/Other/Info.plist

@@ -19,7 +19,7 @@
 	<key>CFBundlePackageType</key>
 	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0.52</string>
+	<string>1.0.54</string>
 	<key>CFBundleVersion</key>
 	<string>2</string>
 	<key>LSHasLocalizedDisplayName</key>