From dd198af72dfa7c5c652f3d200bda71fb2016a6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Fri, 7 Feb 2025 14:24:18 +0800 Subject: [PATCH] 111 --- manifest.json | 539 +++++++++--------- .../utils/call-check-version.js | 3 +- .../utils/check-update.js | 5 +- 3 files changed, 273 insertions(+), 274 deletions(-) diff --git a/manifest.json b/manifest.json index 115c0c5..c20726a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,273 +1,270 @@ { - "name" : "吴门医述", - "appid" : "__UNI__C7475A8", - "description" : "吴门医述", - "networkTimeout" : { - "request" : 15000 - }, - "transformPx" : false, - "icons" : [ - { - "sizes" : "分辨率,192x192", - "src" : "图片路径" - } - ], - "versionName" : "1.0.46", - "versionCode" : 1046, - "app-plus" : { - "nvueCompiler" : "uni-app", - "compatible" : { - "ignoreVersion" : true - }, - "screenOrientation" : [ - "portrait-primary", - "portrait-secondary", - "landscape-primary", - "landscape-secondary" - ], - "privacy" : { - "prompt" : "template", - "template" : { - "title" : "用户协议和隐私政策", - "message" : "请你务必审慎阅读、充分理解“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
  你可阅读《用户协议》《隐私协议》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", - "buttonAccept" : "同意", - "buttonRefuse" : "暂不同意" - } - }, - "modules" : { - "Payment" : {}, - "Share" : {}, - "Camera" : {}, - "OAuth" : {}, - "VideoPlayer" : {} - }, - "distribute" : { - "apple" : { - "devices" : "universal" - }, - // "UIBackgroundModes" : [ "audio" ] - "android" : { - "permissionPhoneState" : { - "request" : "none", - "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。" - }, - "permissionExternalStorage" : { - "request" : "none", - "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" - }, - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "minSdkVersion" : 21, - "targetSdkVersion" : 30, - "schemes" : "medicine" - }, - "sdkConfigs" : { - "ad" : {}, - "maps" : {}, - "share" : { - "weixin" : { - "appid" : "wx6b17b40171dea988", - "UniversalLinks" : "https://verification.nuttyreading.com/uni-universallinks/__UNI__C7475A8/" - } - }, - "payment" : { - "alipay" : { - "__platform__" : [ "ios", "android" ] - }, - "appleiap" : {}, - "weixin" : { - "__platform__" : [ "ios", "android" ], - "appid" : "wx6b17b40171dea988", - "UniversalLinks" : "https://verification.nuttyreading.com/uni-universallinks/__UNI__C7475A8/" - } - }, - "oauth" : {}, - "push" : {} - }, - "splashscreen" : { - "iosStyle" : "common", - "androidStyle" : "default", - "useOriginalMsgbox" : true - }, - "ios" : { - "dSYMs" : false, - // "UIBackgroundModes" : [ "audio" ], // 背景播放音乐 - "capabilities" : { - "entitlements" : { - "com.apple.developer.associated-domains" : [ "applinks:verification.nuttyreading.com" ] - } - }, - "idfa" : false, - "urltypes" : "medicine", - "urlschemewhitelist" : "nuttyreading,zmzm", - "privacyDescription" : { - "NSPhotoLibraryUsageDescription" : "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用", - "NSCameraUsageDescription" : "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用", - "NSPhotoLibraryAddUsageDescription" : "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用" - } - }, - "icons" : { - "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" - }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.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" - }, - "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" - } - } - } - }, - "compilerVersion" : 3, - "nvueLaunchMode" : "fast", - "splashscreen" : { - "alwaysShowBeforeRender" : false - }, - "nativePlugins" : {}, - "uniStatistics" : { - "enable" : true - }, - "safearea" : { - //安全区域配置,仅iOS平台生效 - "bottom" : { - // 底部安全区域配置 - "offset" : "none" // 底部安全区域偏移,"none"表示不空出安全区域,"auto"自动计算空出安全区域,默认值为"none" - } - } - }, - // 5+App特有相关 - "quickapp" : {}, - // 快应用特有相关 - "mp-weixin" : { - "setting" : { - "urlCheck" : false, - "es6" : true, - "postcss" : true, - "minified" : true - }, - "usingComponents" : true, - "appid" : "wxd3ba52b7661b36be", - "permission" : { - "scope.userLocation" : { - "desc" : "你的位置信息将用于小程序位置接口的效果展示" - } - }, - "uniStatistics" : { - "enable" : true - } - }, - "h5" : { - "template" : "template.h5.html", - "router" : { - "mode" : "hash", - "base" : "/uniappDemo/" - }, - "optimization" : { - "treeShaking" : { - "enable" : true - } - }, - "uniStatistics" : { - "enable" : true - } - }, - "_spaceID" : "mp-3614b80b-2d75-4462-a481-4998f8187274", - "uniStatistics" : { - "version" : "2", - "enable" : true - }, - "mp-alipay" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-baidu" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-jd" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-kuaishou" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-lark" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-qq" : { - "uniStatistics" : { - "enable" : true - } - }, - "mp-toutiao" : { - "uniStatistics" : { - "enable" : true - } - }, - "quickapp-webview-huawei" : { - "uniStatistics" : { - "enable" : true - } - }, - "quickapp-webview-union" : { - "uniStatistics" : { - "enable" : true - } - } + "name": "吴门医述", + "appid": "__UNI__C7475A8", + "description": "吴门医述", + "networkTimeout": { + "request": 15000 + }, + "transformPx": false, + "icons": [{ + "sizes": "分辨率,192x192", + "src": "图片路径" + }], + "versionName": "1.0.47", + "versionCode": 1047, + "app-plus": { + "nvueCompiler": "uni-app", + "compatible": { + "ignoreVersion": true + }, + "screenOrientation": [ + "portrait-primary", + "portrait-secondary", + "landscape-primary", + "landscape-secondary" + ], + "privacy": { + "prompt": "template", + "template": { + "title": "用户协议和隐私政策", + "message": "请你务必审慎阅读、充分理解“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
  你可阅读《用户协议》《隐私协议》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", + "buttonAccept": "同意", + "buttonRefuse": "暂不同意" + } + }, + "modules": { + "Payment": {}, + "Share": {}, + "Camera": {}, + "OAuth": {}, + "VideoPlayer": {} + }, + "distribute": { + "apple": { + "devices": "universal" + }, + // "UIBackgroundModes" : [ "audio" ] + "android": { + "permissionPhoneState": { + "request": "none", + "prompt": "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。" + }, + "permissionExternalStorage": { + "request": "none", + "prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" + }, + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], + "minSdkVersion": 21, + "targetSdkVersion": 30, + "schemes": "medicine" + }, + "sdkConfigs": { + "ad": {}, + "maps": {}, + "share": { + "weixin": { + "appid": "wx6b17b40171dea988", + "UniversalLinks": "https://verification.nuttyreading.com/uni-universallinks/__UNI__C7475A8/" + } + }, + "payment": { + "alipay": { + "__platform__": ["ios", "android"] + }, + "appleiap": {}, + "weixin": { + "__platform__": ["ios", "android"], + "appid": "wx6b17b40171dea988", + "UniversalLinks": "https://verification.nuttyreading.com/uni-universallinks/__UNI__C7475A8/" + } + }, + "oauth": {}, + "push": {} + }, + "splashscreen": { + "iosStyle": "common", + "androidStyle": "default", + "useOriginalMsgbox": true + }, + "ios": { + "dSYMs": false, + // "UIBackgroundModes" : [ "audio" ], // 背景播放音乐 + "capabilities": { + "entitlements": { + "com.apple.developer.associated-domains": ["applinks:verification.nuttyreading.com"] + } + }, + "idfa": false, + "urltypes": "medicine", + "urlschemewhitelist": "nuttyreading,zmzm", + "privacyDescription": { + "NSPhotoLibraryUsageDescription": "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用", + "NSCameraUsageDescription": "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用", + "NSPhotoLibraryAddUsageDescription": "保障您在此app中的修改头像、申诉反馈上传图片、留言上传图片功能的正常使用" + } + }, + "icons": { + "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" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.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" + }, + "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" + } + } + } + }, + "compilerVersion": 3, + "nvueLaunchMode": "fast", + "splashscreen": { + "alwaysShowBeforeRender": false + }, + "nativePlugins": {}, + "uniStatistics": { + "enable": true + }, + "safearea": { + //安全区域配置,仅iOS平台生效 + "bottom": { + // 底部安全区域配置 + "offset": "none" // 底部安全区域偏移,"none"表示不空出安全区域,"auto"自动计算空出安全区域,默认值为"none" + } + } + }, + // 5+App特有相关 + "quickapp": {}, + // 快应用特有相关 + "mp-weixin": { + "setting": { + "urlCheck": false, + "es6": true, + "postcss": true, + "minified": true + }, + "usingComponents": true, + "appid": "wxd3ba52b7661b36be", + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" + } + }, + "uniStatistics": { + "enable": true + } + }, + "h5": { + "template": "template.h5.html", + "router": { + "mode": "hash", + "base": "/uniappDemo/" + }, + "optimization": { + "treeShaking": { + "enable": true + } + }, + "uniStatistics": { + "enable": true + } + }, + "_spaceID": "mp-3614b80b-2d75-4462-a481-4998f8187274", + "uniStatistics": { + "version": "2", + "enable": true + }, + "mp-alipay": { + "uniStatistics": { + "enable": true + } + }, + "mp-baidu": { + "uniStatistics": { + "enable": true + } + }, + "mp-jd": { + "uniStatistics": { + "enable": true + } + }, + "mp-kuaishou": { + "uniStatistics": { + "enable": true + } + }, + "mp-lark": { + "uniStatistics": { + "enable": true + } + }, + "mp-qq": { + "uniStatistics": { + "enable": true + } + }, + "mp-toutiao": { + "uniStatistics": { + "enable": true + } + }, + "quickapp-webview-huawei": { + "uniStatistics": { + "enable": true + } + }, + "quickapp-webview-union": { + "uniStatistics": { + "enable": true + } + } } -// 小程序特有相关 - +// 小程序特有相关 \ No newline at end of file diff --git a/uni_modules/uni-upgrade-center-app/utils/call-check-version.js b/uni_modules/uni-upgrade-center-app/utils/call-check-version.js index 8c982ad..3dc7d07 100644 --- a/uni_modules/uni-upgrade-center-app/utils/call-check-version.js +++ b/uni_modules/uni-upgrade-center-app/utils/call-check-version.js @@ -2,6 +2,7 @@ export default function() { // #ifdef APP-PLUS return new Promise((resolve, reject) => { plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) { + console.log('哈哈哈哈', widgetInfo) let data = { action: 'checkVersion', appid: plus.runtime.appid, @@ -29,4 +30,4 @@ export default function() { }) }) // #endif -} +} \ No newline at end of file diff --git a/uni_modules/uni-upgrade-center-app/utils/check-update.js b/uni_modules/uni-upgrade-center-app/utils/check-update.js index 38fe7b0..2ff9b1d 100644 --- a/uni_modules/uni-upgrade-center-app/utils/check-update.js +++ b/uni_modules/uni-upgrade-center-app/utils/check-update.js @@ -7,6 +7,7 @@ export default function() { // #ifdef APP-PLUS return new Promise((resolve, reject) => { callCheckVersion().then(async (e) => { + console.log('hhhhhhhhhhhh', e) if (!e.result) return; const { code, @@ -64,7 +65,7 @@ export default function() { uni.removeStorageSync(PACKAGE_INFO_KEY) } }) - + return } else if (code < 0) { // TODO 云函数报错处理 @@ -155,4 +156,4 @@ function updateUseModal(packageInfo) { }); } }); -} +} \ No newline at end of file