dd
This commit is contained in:
@@ -245,8 +245,8 @@ CLUIElementPopList = CS.CLUIElementPopList
|
|||||||
---@type System.Uri
|
---@type System.Uri
|
||||||
Uri = CS.System.Uri
|
Uri = CS.System.Uri
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
---@type NativeGalleryUtl
|
---@type NativeGallery
|
||||||
NativeGalleryUtl = CS.NativeGalleryUtl
|
NativeGallery = CS.NativeGallery
|
||||||
---@type MyLocation
|
---@type MyLocation
|
||||||
MyLocation = CS.MyLocation
|
MyLocation = CS.MyLocation
|
||||||
---@type Dist.SpringWebsocket.Client4Stomp
|
---@type Dist.SpringWebsocket.Client4Stomp
|
||||||
|
|||||||
@@ -589,28 +589,30 @@ function TRPNewOrder:setEventDelegate()
|
|||||||
-- 相机
|
-- 相机
|
||||||
local permission = MyCamera.getImage(self:wrapFunc(self.onGetImage))
|
local permission = MyCamera.getImage(self:wrapFunc(self.onGetImage))
|
||||||
if permission ~= NativeCamera.Permission.Granted then
|
if permission ~= NativeCamera.Permission.Granted then
|
||||||
CLUIUtl.showConfirm(
|
NativeCamera.RequestPermission()
|
||||||
"没有使用相机的权限,打开设置允许使用相机",
|
-- CLUIUtl.showConfirm(
|
||||||
function()
|
-- "没有使用相机的权限,打开设置允许使用相机",
|
||||||
if not MyCamera.openSetting() then
|
-- function()
|
||||||
MyUtl.toastW("打开权限设置失败")
|
-- if not MyCamera.openSetting() then
|
||||||
end
|
-- MyUtl.toastW("打开权限设置失败")
|
||||||
end,
|
-- end
|
||||||
nil
|
-- end,
|
||||||
)
|
-- nil
|
||||||
|
-- )
|
||||||
end
|
end
|
||||||
elseif popList.value == "2" then
|
elseif popList.value == "2" then
|
||||||
local permission = MyGallery.getImage(self:wrapFunc(self.onGetImage))
|
local permission = MyGallery.getImage(self:wrapFunc(self.onGetImage))
|
||||||
if permission ~= NativeGallery.Permission.Granted then
|
if permission ~= NativeGallery.Permission.Granted then
|
||||||
CLUIUtl.showConfirm(
|
NativeCamera.RequestPermission()
|
||||||
"没有使用相册的权限,打开设置允许使用相册",
|
-- CLUIUtl.showConfirm(
|
||||||
function()
|
-- "没有使用相册的权限,打开设置允许使用相册",
|
||||||
if not MyGallery.openSetting() then
|
-- function()
|
||||||
MyUtl.toastW("打开权限设置失败")
|
-- if not MyGallery.openSetting() then
|
||||||
end
|
-- MyUtl.toastW("打开权限设置失败")
|
||||||
end,
|
-- end
|
||||||
nil
|
-- end,
|
||||||
)
|
-- nil
|
||||||
|
-- )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user