小程序生成提示

feat/task1-c-wallet
devil_gong 2019-04-29 11:42:37 +08:00
parent 283d28f239
commit 964aff0bb5
3 changed files with 35 additions and 2 deletions

View File

@ -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 />
&nbsp;&nbsp;&nbsp;1. 发布小程序必须采用 https 协议,上线需确认 app.js 中 request_url 参数值是否正确。<br />
&nbsp;&nbsp;&nbsp;2. 发布小程序,建议关闭开发者模式、从正式环境重新生成小程序下载使用开发者工具上传审核。<br />
&nbsp;&nbsp;&nbsp;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>

View File

@ -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 />
&nbsp;&nbsp;&nbsp;1. 发布小程序必须采用 https 协议,上线需确认 app.js 中 request_url 参数值是否正确。<br />
&nbsp;&nbsp;&nbsp;2. 发布小程序,建议关闭开发者模式、从正式环境重新生成小程序下载使用开发者工具上传审核。<br />
&nbsp;&nbsp;&nbsp;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>

View File

@ -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);
}
}
// 初始化