作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改两处富文本

... ... @@ -220,4 +220,58 @@ class Coupon extends Api
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
$this->success('success',$data);
}
/**
* @ApiTitle (咨询师申请协议)
* @ApiSummary (咨询师申请协议)
* @ApiMethod (POST)
* @ApiRoute (/api/coupon/protocol)
*
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //id,
"content"://咨询师申请协议内容
"createtime"://创建时间
}
})
*/
public function protocol()
{
$data = Db::name('protocol')
->where('id',1)
->find();
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
$this->success('success',$data);
}
/**
* @ApiTitle (问答小程序服务协议)
* @ApiSummary (问答小程序服务协议)
* @ApiMethod (POST)
* @ApiRoute (/api/coupon/sprotocol)
*
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //id,
"content"://问答小程序服务协议内容
"createtime"://创建时间
}
})
*/
public function sprotocol()
{
$data = Db::name('sprotocol')
->where('id',1)
->find();
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
$this->success('success',$data);
}
}
\ No newline at end of file
... ...
此 diff 太大无法显示。