作者 王智

文档修改

... ... @@ -131,17 +131,6 @@ class User extends Api
$this->success('成功', $return);
}
public function ceshi()
{
// $GuanYiCloud = new GuanYiCloud();
// $bool = $GuanYiCloud->getvip('oMRWOwVjcIuwpOW1XL4jIn7ngWfU');
// if ($bool == 0) {
// $GuanYiCloud->addVip('oMRWOwVjcIuwpOW1XL4jIn7ngWfU', 'ceshi');
// }
// dump($bool);
$info = json_decode('{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 604f8b86-35e79e71-2a52ba2d"}', true);
dump($info['errcode']);
}
/**
* 用户接口
... ...
... ... @@ -653,6 +653,10 @@ class Api
// 'is_hyaline' => True
];
$MiniAppQrcodeVendor = $this->curlPost1($url, $Json);
$JsonDecode = json_decode($MiniAppQrcodeVendor, true);
if ($JsonDecode['errcode'] && $JsonDecode['errcode'] == 40001) {
$this->error('网咯拥堵');
}
$PayOrder = $this->PayOrder();
$path = './MiniAppQrCode/' . $UserId . '.png';
$res = file_put_contents($path, $MiniAppQrcodeVendor);//将微信返回的图片数据流写入文件
... ...