小程序生成强制使用https协议

This commit is contained in:
devil_gong 2019-01-18 17:38:41 +08:00
parent d11d22ea34
commit d3067f0b7a

View File

@ -100,6 +100,12 @@ class AppMiniService
*/
public static function Created($params = [])
{
// 是否https
if(__MY_HTTP__ != 'https')
{
return DataReturn('请使用https协议', -1);
}
// 初始化
self::Init($params);