正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -47,7 +47,7 @@ class Common extends Api | @@ -47,7 +47,7 @@ class Common extends Api | ||
47 | } | 47 | } |
48 | 48 | ||
49 | $upload['cdnurl'] = $upload['cdnurl'] ? $upload['cdnurl'] : cdnurl('', true); | 49 | $upload['cdnurl'] = $upload['cdnurl'] ? $upload['cdnurl'] : cdnurl('', true); |
50 | - $upload['uploadurl'] = preg_match("/^((?:[a-z]+:)?\/\/)(.*)/i", $upload['uploadurl']) ? $upload['uploadurl'] : url($upload['bucket'] == 'local' ? '/api/common/upload' : $upload['uploadurl'], '', false, true); | 50 | + $upload['uploadurl'] = preg_match("/^((?:[a-z]+:)?\/\/)(.*)/i", $upload['uploadurl']) ? $upload['uploadurl'] : url($upload['storage'] == 'local' ? '/api/common/upload' : $upload['uploadurl'], '', false, true); |
51 | 51 | ||
52 | $content = [ | 52 | $content = [ |
53 | 'citydata' => Area::getCityFromLngLat($lng, $lat), | 53 | 'citydata' => Area::getCityFromLngLat($lng, $lat), |
-
请 注册 或 登录 后发表评论