作者 王智

daima

... ... @@ -491,4 +491,24 @@ class Index extends Api
Db::name('seller')->where('id', $param['seller_id'])->update(['talk_num' => $talk_num + 1]);
$this->res($res);
}
/**
* 首页接口
* @ApiTitle (首页接口-联系客服文字)
* @ApiSummary (联系客服文字)
* @ApiMethod (POST)
* @ApiRoute (/api/Index/Lianxi)
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturn ({
'code':'1',
'msg':'返回成功',
})
*/
public function Lianxi()
{
$title = Db::name('lianxi')->where('id', 1)->value('title');
$this->success('成功', $title);
}
}
... ...