feat: 移除多余代码
This commit is contained in:
parent
c67d511ee7
commit
bcf2a099df
|
|
@ -175,8 +175,8 @@ class WorkerApi extends BaseService
|
|||
'time' => Request::instance()->server('REQUEST_TIME'),
|
||||
'data' => $data,
|
||||
];
|
||||
// 如果未设置类型则自动判断
|
||||
$type = $type ? $type : ($this->request->param(config('var_jsonp_handler')) ? 'jsonp' : $this->responseType);
|
||||
// 如果未设置类型则使用默认类型判断
|
||||
$type = $type ? : $this->responseType;
|
||||
|
||||
if (isset($header['statuscode'])) {
|
||||
$code = $header['statuscode'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user