فهرست منبع

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

Steven 3 ماه پیش
والد
کامیت
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];