Commit c691a8e5 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into develop

parents efa806d0 c1029b8e
......@@ -195,6 +195,6 @@ class RecommendCoinController extends BaseController
}
$this->data = $coin_trusteeship;
doEnd :
return ['code' => $this->code, 'data' => $this->data, 'msg' => $this->msg, 'count' => count($this->data)];
return ['code' => $this->code, 'data' => $this->data, 'msg' => $this->msg, 'count' => empty($this->data) ? 0 : count($this->data)];
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment