自动发卡平台源码系统_发卡系统源码提供_发卡系统开源代码-发卡优发卡平台营销官网

七牛云是SSL(https://)在发卡平台上如何设置https呢?

w2468o 图文教程 0 热度 329 收藏 0

七牛云是SSL(https://)在发卡平台上如何设置https呢?


有很多人使用 SSL(也就是说 网址https)网址在浏览器上是绿标,但是网址内不能带有 http的链接,若有就成了问好而不是绿标


其实这个问题也很简单 


大家就跟着我的操作来做把!


修改文件 /application/admin/controller/Plugs.php

我们修改 文件的 121,144,232 行 把 http:// 改成 https://

121行

header("Location:http://".$_SERVER['HTTP_HOST']);

 改成

header("Location:https://".$_SERVER['HTTP_HOST']);

144行

header("Location:http://".$_SERVER['HTTP_HOST']);

改成

header("Location:https://".$_SERVER['HTTP_HOST']);

232行

 "returnBody" => "{\"data\":{\"site_url\":\"http://{$host}/$(key)\",\"file_url\":\"$(key)\"}, \"code\": \"SUCCESS\"}",

改成

 "returnBody" => "{\"data\":{\"site_url\":\"https://{$host}/$(key)\",\"file_url\":\"$(key)\"}, \"code\": \"SUCCESS\"}",


修改文件 /extend/service/FileService.php

修改文件的 133行 和 142行

133行

        return 'http://' . sysconf('storage_qiniu_domain') . '/';

改成

        return 'https://' . sysconf('storage_qiniu_domain') . '/';

142行

        return 'http://' . sysconf('storage_oss_domain') . '/';

改成

        return 'https://' . sysconf('storage_oss_domain') . '/';


免责声明

API代理版自动发卡平台系统源码 www.fakau.com

评论列表
请自觉遵守互联网相关的政策法规,严禁发布广告、色情、暴力、反动的言论。
  • 点击我更换图片
  • 全部评论(0
    还没有评论,快来抢沙发吧!