作者 耿培杰

修改删除订单

... ... @@ -311,6 +311,7 @@ class Sundry extends Api
* @ApiSummary (获取小程序logo)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=false, description="请求的Token")
* @ApiParams (name=type, type=string, required=true, description="类型:1=首页logo,2=会员卡logo")
* @ApiReturn({
"code": 1,
"msg": "SUCCESS",
... ... @@ -323,6 +324,13 @@ class Sundry extends Api
*/
public function getLogo()
{
$this->success('SUCCESS', cdnurl(config('site.logo')));
$type = $this->request->param('type');
if (!$type) $this->error('缺少参数 type!');
if ($type == 1) {
$logo = cdnurl(config('site.logo'));
} elseif ($type == 2) {
$logo = cdnurl(config('site.logo2'));
} else $this->error('参数无效');
$this->success('SUCCESS', $logo);
}
}
... ...