用系统的EasyPermission方法 以相机为力
if(EasyPermissions.hasPermissions(context!!,CAMERA)){
catchPhoto()
}else{
val permissionRequest = PermissionRequest.Builder(
this, 500, CAMERA)
.setRationale("请打开设置中的访问相机权限")
.setPositiveButtonText("确定")
.setNegativeButtonText("取消")
.build()
EasyPermissions.requestPermissions(permissionRequest)
}