作者 王智

daima

@@ -487,6 +487,8 @@ class Index extends Api @@ -487,6 +487,8 @@ class Index extends Api
487 'createtime' => time(), 487 'createtime' => time(),
488 ]; 488 ];
489 $res = Db::name('seller_talk')->insert($data); 489 $res = Db::name('seller_talk')->insert($data);
  490 + $talk_num = Db::name('seller')->where('id', $param['seller_id'])->value('talk_num');
  491 + Db::name('seller')->where('id', $param['seller_id'])->update(['talk_num' => $talk_num + 1]);
490 $this->res($res); 492 $this->res($res);
491 } 493 }
492 } 494 }