作者 王智

baoxiu22

... ... @@ -165,6 +165,7 @@ class User extends Api
curl_close($ch);
$curl_result = json_decode($output, true);
dump($curl_result);
die;
$res = Db::name('user')->where(['id' => $user_id])->update(['openid' => $curl_result['openid']]);
if ($res) {
$this->success('绑定成功', 1);
... ...