...
|
...
|
@@ -274,6 +274,35 @@ class Index extends Api |
|
|
|
|
|
/**
|
|
|
* 首页接口
|
|
|
* @ApiTitle (检查是否重复签订)
|
|
|
* @ApiSummary (检查是否重复签订)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/Index/IsDobelAgreement)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="seller_id", type="string", required=true, description="服务商ID")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
|
|
'msg':'返回成功',
|
|
|
"data": 1=已经签订过,0=未签订协议
|
|
|
})
|
|
|
*/
|
|
|
public function IsDobelAgreement()
|
|
|
{
|
|
|
$UserId = $this->IsToken($this->request->header());
|
|
|
$params = $this->request->param();
|
|
|
$res111 = Db::name('agreement')->where('user_id', $UserId)->where('seller_id', $params['seller_id'])->where('status', 'IN', '0,1')->find();
|
|
|
if (!empty($res111)) {
|
|
|
$this->success('成功', 1);
|
|
|
} else {
|
|
|
$this->success('成功', 0);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 首页接口
|
|
|
* @ApiTitle (签订协议)
|
|
|
* @ApiSummary (签订协议)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|