作者 王智

1111

... ... @@ -453,9 +453,13 @@ class Config extends Api
$Params = $this->request->param();
if (!empty($Headers['authorization'])) {
$UserId = Db::name('user')->where('token', $Headers['authorization'])->value('id');
dump($UserId);
if (!empty($UserId)) {
echo '2';
$ObUser = Db::name('ob')->where('id', $Params['ob_id'])->value('user_id');
if (empty($ObUser) || $ObUser == '' || $ObUser == null) {
echo '3';
$res = Db::name('ob')->where('id', $Params['ob_id'])->update(
[
'user_id' => $UserId,
... ...