作者 王智

1111

@@ -453,13 +453,9 @@ class Config extends Api @@ -453,13 +453,9 @@ 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);  
457 if (!empty($UserId)) { 456 if (!empty($UserId)) {
458 - echo '2';  
459 $ObUser = Db::name('ob')->where('id', $Params['ob_id'])->value('user_id'); 457 $ObUser = Db::name('ob')->where('id', $Params['ob_id'])->value('user_id');
460 if (empty($ObUser) || $ObUser == '' || $ObUser == null) { 458 if (empty($ObUser) || $ObUser == '' || $ObUser == null) {
461 - echo '3';  
462 -  
463 $res = Db::name('ob')->where('id', $Params['ob_id'])->update( 459 $res = Db::name('ob')->where('id', $Params['ob_id'])->update(
464 [ 460 [
465 'user_id' => $UserId, 461 'user_id' => $UserId,