提交 c99248b7 编写于 作者: 杜庆泉's avatar 杜庆泉

修复部分语法提示报错

上级 56d8d4f9
......@@ -108,7 +108,7 @@ export function onUserCaptureScreen(callback: (res:UTSJSONObject) => void) {
let directory_pictures = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_PICTURES);
let directory_dcim = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM);
if (Build.MANUFACTURER.lowercase() === "xiaomi") {
if (Build.MANUFACTURER.toLowerCase() === "xiaomi") {
directory_screenshot = new File(directory_dcim, "Screenshots");
} else {
directory_screenshot = new File(directory_pictures, "Screenshots");
......
......@@ -128,8 +128,8 @@ function wrapWifiConfiguration(SSID:string ,password:string,passwordType:string)
*/
class UniWifiInfo {
SSID: String = "";
BSSID: String = "";
SSID: string = "";
BSSID: string = "";
secure: boolean = false;
signalStrength: Number = 0;
frequency: Number = 0;
......@@ -204,8 +204,8 @@ type GetConnectedWifiOptions = {
* 全局数据储存
*/
class Global {
static mReceiver?: CustomBroadcastReceiver = null;
static WIFI_AUTH_OPEN: String = "";
static mReceiver: CustomBroadcastReceiver|null = null;
static WIFI_AUTH_OPEN: string = "";
static WIFI_AUTH_ROAM: String = "[ESS]";
static scanList: UniWifiInfo[] = []
......@@ -232,7 +232,7 @@ function getSecurityType(result:ScanResult):string {
@Suppress("UNUSED_PARAMETER","DEPRECATION")
class CustomBroadcastReceiver extends BroadcastReceiver {
mWifiManager?: WifiManager = null;
mWifiManager: WifiManager|null = null;
constructor(wifiManager: WifiManager) {
super();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册