Commit 75fb0bc4 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 281e9f71
......@@ -108,7 +108,7 @@ class ServiceController extends BaseController
return ['code' => 1,'data' => [],'msg' => '币种不能为空'];
}
$fee = MinerFee::find()->where(['platform' => $coin,'type' => 2])->asArray()->one();
if(!$fee){
if(!$fee || !$fee['min']){
return ['code' => 1,'data' => [],'msg' => '旷工费未设置'];
}
return ['code' => 0,'data' => $fee,'msg' => '旷工费获取成功'];
......
......@@ -146,7 +146,7 @@ class MinerFeeController extends BaseController
$trusteeship = new Trusteeship();
$data = $trusteeship->getSupportCoin();
if($data['code'] != 0){
return ['code' => -1, 'msg' => '获取托管钱包币种失败'];
return ['code' => -1, 'msg' => $data['msg']];
}else{
$trusteeship_coins = array_column($data['data'],'currency');
$list = MinerFee::getList(1, 999, [['type' => 2]]);
......
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