作者 王智

daima

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