Commit 4f7460d7 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 8cf7b6bb
...@@ -70,6 +70,9 @@ class ServiceController extends BaseController ...@@ -70,6 +70,9 @@ class ServiceController extends BaseController
{ {
$request = Yii::$app->request; $request = Yii::$app->request;
$coinItems = $request->post('names'); $coinItems = $request->post('names');
if(!$coinItems){
return ['code' => 1,'data' => [],'msg' => '币种不能为空'];
}
if(!is_array($coinItems)){ if(!is_array($coinItems)){
$coinItems = [$coinItems]; $coinItems = [$coinItems];
} }
......
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