小程序生成提示
parent
283d28f239
commit
964aff0bb5
|
|
@ -9,6 +9,21 @@
|
|||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- miniapp develop tips -->
|
||||
{{if config('shopxo.is_develop') eq true}}
|
||||
<div class="am-alert am-alert-warning am-radius" data-am-alert="">
|
||||
当前为开发模式<br />
|
||||
1. 发布小程序必须采用 https 协议,上线需确认 app.js 中 request_url 参数值是否正确。<br />
|
||||
2. 发布小程序,建议关闭开发者模式、从正式环境重新生成小程序下载使用开发者工具上传审核。<br />
|
||||
3. 非 https 环境下,在开发者工具 -> 右上角 -> 详情 -> 域名信息下 -> 忽略 httpRequest 域名合法性检查(仅限调试时,且支付宝 10.1.35 版本以上)(勾选改选项即可进行小程序开发调试)。
|
||||
</div>
|
||||
{{else /}}
|
||||
<div class="am-alert am-alert-warning am-radius" data-am-alert="">
|
||||
1. 生成小程序必须在 https 协议下方可操作、请配置好服务器 ssl 并使用 https 协议登录后台管理生成小程序。<br />
|
||||
2. 如需非 https 协议下生成小程序,请在 config/shopxo.php 文件中 is_develop值改为true开启开发者模式。
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5">
|
||||
<thead>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,21 @@
|
|||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- miniapp develop tips -->
|
||||
{{if config('shopxo.is_develop') eq true}}
|
||||
<div class="am-alert am-alert-warning am-radius" data-am-alert="">
|
||||
当前为开发模式<br />
|
||||
1. 发布小程序必须采用 https 协议,上线需确认 app.js 中 request_url 参数值是否正确。<br />
|
||||
2. 发布小程序,建议关闭开发者模式、从正式环境重新生成小程序下载使用开发者工具上传审核。<br />
|
||||
3. 非 https 环境下,在开发者工具 -> 右上角 -> 详情 -> 不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书(勾选改选项即可进行小程序开发调试)。
|
||||
</div>
|
||||
{{else /}}
|
||||
<div class="am-alert am-alert-warning am-radius" data-am-alert="">
|
||||
1. 生成小程序必须在 https 协议下方可操作、请配置好服务器 ssl 并使用 https 协议登录后台管理生成小程序。<br />
|
||||
2. 如需非 https 协议下生成小程序,请在 config/shopxo.php 文件中 is_develop值改为true开启开发者模式。
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5">
|
||||
<thead>
|
||||
|
|
|
|||
|
|
@ -101,9 +101,12 @@ class AppMiniService
|
|||
public static function Created($params = [])
|
||||
{
|
||||
// 是否https
|
||||
if(__MY_HTTP__ != 'https')
|
||||
if(config('shopxo.is_develop') == false)
|
||||
{
|
||||
return DataReturn('请使用https协议', -1);
|
||||
if(__MY_HTTP__ != 'https')
|
||||
{
|
||||
return DataReturn('请使用https协议', -1);
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
|
|
|
|||
Loading…
Reference in New Issue