...
|
...
|
@@ -453,13 +453,9 @@ 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,
|
...
|
...
|
|