瀏覽代碼

增加choose file 选择文件file path ,内部判断,若为空 默认 user

Steven 6 月之前
父節點
當前提交
f531f3af57
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      KulexiuForStudent/KulexiuForStudent/Common/Base/WebView/KSBaseWKWebViewController.m

+ 2 - 1
KulexiuForStudent/KulexiuForStudent/Common/Base/WebView/KSBaseWKWebViewController.m

@@ -493,7 +493,8 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
         NSString *typeStr = [valueDic ks_stringValueForKey:@"type"];
         NSInteger maxCount = [valueDic ks_integerValueForKey:@"max"];
         NSString *bucket = [valueDic ks_stringValueForKey:@"bucket"];
-        [self chooseFileWithType:typeStr maxNumber:maxCount bucket:bucket];
+        NSString *path = [valueDic ks_stringValueForKey:@"path"];
+        [self chooseFileWithType:typeStr maxNumber:maxCount bucket:bucket path:path];
     }
     else if ([[parm ks_stringValueForKey:@"api"] isEqualToString:@"setAddress"]) { // 跳转地址选择
         AddressListViewController *ctrl = [[AddressListViewController alloc] init];