作者 王智

1111

@@ -453,9 +453,13 @@ class Config extends Api @@ -453,9 +453,13 @@ class Config extends Api
453 $Params = $this->request->param(); 453 $Params = $this->request->param();
454 if (!empty($Headers['authorization'])) { 454 if (!empty($Headers['authorization'])) {
455 $UserId = Db::name('user')->where('token', $Headers['authorization'])->value('id'); 455 $UserId = Db::name('user')->where('token', $Headers['authorization'])->value('id');
  456 + dump($UserId);
456 if (!empty($UserId)) { 457 if (!empty($UserId)) {
  458 + echo '2';
457 $ObUser = Db::name('ob')->where('id', $Params['ob_id'])->value('user_id'); 459 $ObUser = Db::name('ob')->where('id', $Params['ob_id'])->value('user_id');
458 if (empty($ObUser) || $ObUser == '' || $ObUser == null) { 460 if (empty($ObUser) || $ObUser == '' || $ObUser == null) {
  461 + echo '3';
  462 +
459 $res = Db::name('ob')->where('id', $Params['ob_id'])->update( 463 $res = Db::name('ob')->where('id', $Params['ob_id'])->update(
460 [ 464 [
461 'user_id' => $UserId, 465 'user_id' => $UserId,