企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# mainfest.xml详解 ``` <pre class="calibre18">``` <span class="token"><</span>html version<span class="token">=</span><span class="token4">"1.0"</span> encoding<span class="token">=</span><span class="token4">"utf-8"</span><span class="token">?</span><span class="token">></span> 此行 version 只能是 <span class="token4">"1.0"</span> <span class="token"><</span>manifest xmlns<span class="token">=</span><span class="token4">"http://www.we7.cc"</span> versionCode<span class="token">=</span><span class="token4">"0.6"</span><span class="token">></span> <span class="token"><</span>application setting<span class="token">=</span><span class="token4">"true"</span> cloud_setting<span class="token">=</span><span class="token4">"true"</span><span class="token">></span> <span class="token"><</span>name<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>微商城<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>name<span class="token">></span> 发布过后,应用名称不允许修改 <span class="token"><</span>identifie<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>ewei_shopping<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>identifie<span class="token">></span> 发布过后,应用标识不允许修改 <span class="token"><</span>version<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span><span class="token3">6.9</span><span class="token3">.9</span><span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>version<span class="token">></span> 云商城版本比较函数 <span class="token1">version_compare</span><span class="token2">(</span>$v1<span class="token2">,</span> $v2<span class="token2">)</span> <span class="token"><</span>type<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>business<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>type<span class="token">></span> 类型请到云商城设计模块中查阅,错误将无法发布成功 <span class="token"><</span>ability<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>微商城<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>ability<span class="token">></span> <span class="token"><</span>description<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>微商城<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>description<span class="token">></span> <span class="token"><</span>author<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>WeEngine Team <span class="token">&</span> ewei<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>author<span class="token">></span> <span class="token"><</span>url<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>url<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>url<span class="token">></span> <span class="token"><</span><span class="token">/</span>application<span class="token">></span> <span class="token"><</span>platform<span class="token">></span> <span class="token"><</span>subscribes<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"text"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"image"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"voice"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"video"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"shortvideo"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"location"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"link"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"subscribe"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"unsubscribe"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"qr"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"trace"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"click"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"view"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"merchant_order"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_get_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_del_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_consume_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span><span class="token">/</span>subscribes<span class="token">></span> <span class="token"><</span>handles<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"text"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"image"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"voice"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"video"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"shortvideo"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"location"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"link"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"subscribe"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"qr"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"trace"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"click"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"merchant_order"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_get_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_del_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span>message type<span class="token">=</span><span class="token4">"user_consume_card"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>message<span class="token">></span> <span class="token"><</span><span class="token">/</span>handles<span class="token">></span> <span class="token"><</span>supports<span class="token">></span> <span class="token2">(</span>在线安装或更新时会重新计算所有已购买的支持类型<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"plugin"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"app"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布公众号必须填写<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"wxapp"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布小程序必须填写<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"system_welcome"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布微擎首页必须填写<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"webapp"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布 PC 版必须填写<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"android"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布 APP<span class="token2">[</span>安卓<span class="token2">]</span>必须填写<span class="token2">)</span> <span class="token"><</span>item type<span class="token">=</span><span class="token4">"ios"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token2">(</span>发布 APP<span class="token2">[</span>苹果<span class="token2">]</span>必须填写<span class="token2">)</span> <span class="token"><</span><span class="token">/</span>supports<span class="token">></span> <span class="token"><</span>plugin<span class="token">-</span>main name<span class="token">=</span><span class="token4">"wx_nstore"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>plugin<span class="token">></span> <span class="token2">(</span>在线安装或更新时会重新计算所有已购主应用<span class="token2">)</span> <span class="token"><</span>plugins<span class="token">></span> <span class="token2">(</span>在线安装或更新时会重新计算所有已购插件<span class="token2">)</span> <span class="token"><</span>item name<span class="token">=</span><span class="token4">"ewei_hotel"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token"><</span>item name<span class="token">=</span><span class="token4">"ewei_hotel2"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>item<span class="token">></span> <span class="token"><</span><span class="token">/</span>plugins<span class="token">></span> <span class="token"><</span>rule embed<span class="token">=</span><span class="token4">"true"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>rule<span class="token">></span> <span class="token"><</span>card embed<span class="token">=</span><span class="token4">"true"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>card<span class="token">></span> <span class="token"><</span>oauth type<span class="token">=</span><span class="token4">"userinfo"</span> <span class="token">></span><span class="token"><</span><span class="token">/</span>oauth<span class="token">></span> <span class="token"><</span><span class="token">/</span>platform<span class="token">></span> <span class="token"><</span>bindings<span class="token">></span> <span class="token"><</span>cover<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"功能封面"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"cover"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"功能封面2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"cover2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>cover<span class="token">></span> <span class="token"><</span>rule<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"规则"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"rule"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"规则2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"rule2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>rule<span class="token">></span> <span class="token"><</span>menu<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"管理中心"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"menu"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"管理中心2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"menu2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>menu<span class="token">></span> <span class="token"><</span>home<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"首页导航"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"home"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"首页导航2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"home2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>home<span class="token">></span> <span class="token"><</span>profile<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"个人中心导航"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"profile"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"个人中心导航2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"profile2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>profile<span class="token">></span> <span class="token"><</span>shortcut<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"快捷功能"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"shortcut"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"快捷功能2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"shortcut2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>shortcut<span class="token">></span> <span class="token"><</span><span class="token5">function</span><span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"独立功能"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"func"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"独立功能2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"func2"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span><span class="token5">function</span><span class="token">></span> <span class="token"><</span>page<span class="token">></span> 发布小程序必须有此项设置 <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"首页"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"/we7_gs/pages/index/index"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">""</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"主页"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"/we7_gs/pages/index/main"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">""</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>page<span class="token">></span> <span class="token"><</span>system_welcome<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"systemwelcome"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"systemwelcome"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>system_welcome<span class="token">></span> <span class="token"><</span>webapp<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"webapp"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"webapp"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>webapp<span class="token">></span> <span class="token"><</span>phoneapp<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"phoneapp"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"phoneapp"</span> state<span class="token">=</span><span class="token4">""</span> direct<span class="token">=</span><span class="token4">"false"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>phoneapp<span class="token">></span> <span class="token"><</span><span class="token">/</span>bindings<span class="token">></span> <span class="token"><</span>permissions<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"title1"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"permission1"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span>entry title<span class="token">=</span><span class="token4">"title2"</span> <span class="token5">do</span><span class="token">=</span><span class="token4">"permission2"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>entry<span class="token">></span> <span class="token"><</span><span class="token">/</span>permissions<span class="token">></span> <span class="token"><</span>install<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>install<span class="token2">.</span>php<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>install<span class="token">></span> <span class="token"><</span>uninstall<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>uninstall<span class="token2">.</span>php<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>uninstall<span class="token">></span> <span class="token"><</span>upgrade<span class="token">></span><span class="token"><</span><span class="token">!</span><span class="token2">[</span>CDATA<span class="token2">[</span>upgrade<span class="token2">.</span>php<span class="token2">]</span><span class="token2">]</span><span class="token">></span><span class="token"><</span><span class="token">/</span>upgrade<span class="token">></span> <span class="token"><</span><span class="token">/</span>manifest<span class="token">></span> ``` ```