...
|
...
|
@@ -9,6 +9,7 @@ use fast\Random; |
|
|
use think\Config;
|
|
|
use app\common\model\Attachment;
|
|
|
use addons\qiniu\library\Auth;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
|
|
* 公共接口
|
...
|
...
|
@@ -162,4 +163,15 @@ class Common extends Api |
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
public function BindWeChar()
|
|
|
{
|
|
|
$user_id = $this->is_token($this->request->header());
|
|
|
$res = Db::name('user')->where('id', $user_id)->update(['openid' => '']);
|
|
|
if ($res) {
|
|
|
$this->success('成功', 1);
|
|
|
} else {
|
|
|
$this->error('失败', 0);
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|