- 发布:2024-08-30 18:55
- 更新:2024-08-30 18:55
- 阅读:102
【报Bug】最近发现,app因为sdk.api.oaid.wocloud.cn的接口导致请求延迟30秒,然后在晚上6点多,sdk.api.oaid.wocloud.cn 又正常了
产品分类: HTML5+
HBuilderX版本号: 4.24
手机系统: 全部
手机机型: 华为 VIVO 都有这个现象
打包方式: 云端
测试过的手机:
示例代码:
{
"@platforms" : [ "android" ],
"id" : "H5619190B",
/必选,应用的标识/
"name" : "",
/必选,应用名称/
"version" : {
"name" : "1.4",
/必选,版本名称/
"code" : "100"
},
"description" : "",
/可选,应用描述信息/
"icons" : {
"72" : "icon.png"
},
"fullscreen" : true,
"launch_path" : "http:xxxx",
/必选,应用的入口页面,默认为根目录下的index.html;也可以是网络地址,网络地址必须以http://或https://开头/
"developer" : {
"email" : "",
/可选,开发者名称/
"name" : "",
/可选,开发者邮箱地址/
"url" : ""
},
"permissions" : {},
"plus" : {
"launchwebview" : {
"titleNView" : {
"backgroundcolor" : "#f7f7f7",
"titletext" : "",
"titlecolor" : "#000000"
}
},
"statusbar" : {
"immersed" : false, //"supportedDevice",
"style" : "dark"
},
"popGesture" : "close",
/设置应用默认侧滑返回关闭Webview窗口,none为无侧滑返回功能,hide为侧滑隐藏Webview窗口。参考ask.dcloud.net.cn/article/102/
"splashscreen" : {
"autoclose" : true,
/如果为true,程序启动的图片可以自动关闭,如果为false,开发者需要手动关闭/
"waiting" : true
},
"runmode" : "normal",
/两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源/
"signature" : "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",
/可选,保留给应用签名,暂不使用/
"distribute" : {
"debug" : "",
/可选,是否为debug模式,可取值:true表示debug模式运行,false表示release模式运行,默认值为false/
"apple" : {
"appid" : "",
/iOS必选,苹果开发网站申请的appid,如io.dcloud.HelloMUI/
"mobileprovision" : "",
/iOS必选,打包配置文件/
"password" : "",
/iOS必选,导入配置文件密码/
"p12" : "",
/iOS必选,打包配置文件关联的个人证书/
"devices" : "universal",
/iphone,可取值iphone/ipad/universal/
"frameworks" : [],
"idfa" : false
},
"google" : {
"packagename" : "",
/Android必选,程序包名,如io.dcloud.HelloMUI/
"keystore" : "",
/Android必选,打包证书文件/
"password" : "",
/Android必选,打包证书密码/
"aliasname" : "",
/Android必选,打包证书别名/
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 24,
"targetSdkVersion" : 24
},
"orientation" : [
"portrait-primary",
"landscape-primary",
"portrait-secondary",
"landscape-secondary"
],
/必选/
"icons" : {
"ios" : {
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
},
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"appstore" : "unpackage/res/icons/1024x1024.png"
},
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}
},
"splashscreen" : {
"ios" : {
"iphone" : {},
"ipad" : {}
},
"android" : {
"hdpi" : "unpackage/res/splash.png",
"xhdpi" : "unpackage/res/splash.png",
"xxhdpi" : "unpackage/res/splash.png"
},
"androidStyle" : "default",
"useOriginalMsgbox" : false
},
"plugins" : {
"geolocation" : {
"system" : {
"platform" : [ "ios", "android" ]
}
}
}
},
"schemeWhitelist" : [ "market" ]
},
"dependencies" : {
"pages" : {},
"idle" : {}
},
"screenOrientation" : [ "portrait-primary" ]
}
{
"@platforms" : [ "android" ],
"id" : "H5619190B",
/必选,应用的标识/
"name" : "",
/必选,应用名称/
"version" : {
"name" : "1.4",
/必选,版本名称/
"code" : "100"
},
"description" : "",
/可选,应用描述信息/
"icons" : {
"72" : "icon.png"
},
"fullscreen" : true,
"launch_path" : "http:xxxx",
/必选,应用的入口页面,默认为根目录下的index.html;也可以是网络地址,网络地址必须以http://或https://开头/
"developer" : {
"email" : "",
/可选,开发者名称/
"name" : "",
/可选,开发者邮箱地址/
"url" : ""
},
"permissions" : {},
"plus" : {
"launchwebview" : {
"titleNView" : {
"backgroundcolor" : "#f7f7f7",
"titletext" : "",
"titlecolor" : "#000000"
}
},
"statusbar" : {
"immersed" : false, //"supportedDevice",
"style" : "dark"
},
"popGesture" : "close",
/设置应用默认侧滑返回关闭Webview窗口,none为无侧滑返回功能,hide为侧滑隐藏Webview窗口。参考ask.dcloud.net.cn/article/102/
"splashscreen" : {
"autoclose" : true,
/如果为true,程序启动的图片可以自动关闭,如果为false,开发者需要手动关闭/
"waiting" : true
},
"runmode" : "normal",
/两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源/
"signature" : "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",
/可选,保留给应用签名,暂不使用/
"distribute" : {
"debug" : "",
/可选,是否为debug模式,可取值:true表示debug模式运行,false表示release模式运行,默认值为false/
"apple" : {
"appid" : "",
/iOS必选,苹果开发网站申请的appid,如io.dcloud.HelloMUI/
"mobileprovision" : "",
/iOS必选,打包配置文件/
"password" : "",
/iOS必选,导入配置文件密码/
"p12" : "",
/iOS必选,打包配置文件关联的个人证书/
"devices" : "universal",
/iphone,可取值iphone/ipad/universal/
"frameworks" : [],
"idfa" : false
},
"google" : {
"packagename" : "",
/Android必选,程序包名,如io.dcloud.HelloMUI/
"keystore" : "",
/Android必选,打包证书文件/
"password" : "",
/Android必选,打包证书密码/
"aliasname" : "",
/Android必选,打包证书别名/
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 24,
"targetSdkVersion" : 24
},
"orientation" : [
"portrait-primary",
"landscape-primary",
"portrait-secondary",
"landscape-secondary"
],
/必选/
"icons" : {
"ios" : {
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
},
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"appstore" : "unpackage/res/icons/1024x1024.png"
},
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}
},
"splashscreen" : {
"ios" : {
"iphone" : {},
"ipad" : {}
},
"android" : {
"hdpi" : "unpackage/res/splash.png",
"xhdpi" : "unpackage/res/splash.png",
"xxhdpi" : "unpackage/res/splash.png"
},
"androidStyle" : "default",
"useOriginalMsgbox" : false
},
"plugins" : {
"geolocation" : {
"system" : {
"platform" : [ "ios", "android" ]
}
}
}
},
"schemeWhitelist" : [ "market" ]
},
"dependencies" : {
"pages" : {},
"idle" : {}
},
"screenOrientation" : [ "portrait-primary" ]
}
操作步骤:
就最近几天 ,白天就有这个现象,晚上6点多就恢复了
就最近几天 ,白天就有这个现象,晚上6点多就恢复了
预期结果:
能正常请求
能正常请求
实际结果:
能正常请求
能正常请求
bug描述:
最近发现,app因为sdk.api.oaid.wocloud.cn的接口导致请求延迟30秒,然后再每个时间段,sdk.api.oaid.wocloud.cn 又正常了,业务的请求又恢复
这个只是用Hubild 打包H5 的APP,启动页面是服务器上的。工程里没有任何其他东西