最近搞了一个卡密授权接口,使用派api框架。出现问题ssl验证无法通过,报错curl: (60) SSL certificate problem: unable to get local issuer certificate,原因是Let's Encrypt因更换根证书,部分老旧设备访问时可能提示不可信。
接口执行流程如下:
1.通过curl向卡密验证接口提交卡密
$keyapi = json_decode($curl->get('https://api.msdnxz.com/?s=App.Key.Verify&thekey='.$key));
2.验证通过后调用数据库完整信息
200 success
access-control-allow-origin: *
cache-control: no-store, no-cache, must-revalidate
content-type: application/json;charset=utf-8
date: Fri, 01 Oct 2021 07:18:20 GMT
expires: Thu, 19 Nov 1981 08:52:00 GMT
pragma: no-cache
server: nginx
strict-transport-security: max-age=31536000
{
"ret": 200,
"data": {
"message": "查询成功",
"phone": "13688805189",
"phonediqu": "广东深圳 移动",
"lol": "没有找到",
"wb": "没