作者 王智

daima

@@ -491,4 +491,24 @@ class Index extends Api @@ -491,4 +491,24 @@ class Index extends Api
491 Db::name('seller')->where('id', $param['seller_id'])->update(['talk_num' => $talk_num + 1]); 491 Db::name('seller')->where('id', $param['seller_id'])->update(['talk_num' => $talk_num + 1]);
492 $this->res($res); 492 $this->res($res);
493 } 493 }
  494 +
  495 +
  496 + /**
  497 + * 首页接口
  498 + * @ApiTitle (首页接口-联系客服文字)
  499 + * @ApiSummary (联系客服文字)
  500 + * @ApiMethod (POST)
  501 + * @ApiRoute (/api/Index/Lianxi)
  502 + * @ApiReturnParams (name="code", type="integer", required=true, sample="0")
  503 + * @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
  504 + * @ApiReturn ({
  505 + 'code':'1',
  506 + 'msg':'返回成功',
  507 + })
  508 + */
  509 + public function Lianxi()
  510 + {
  511 + $title = Db::name('lianxi')->where('id', 1)->value('title');
  512 + $this->success('成功', $title);
  513 + }
494 } 514 }