Commit c91f572e authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !450
parents 2d4eaaf1 50f00d10
......@@ -31,15 +31,15 @@ class AirDropController extends BaseController
goto doEnd;
}
$miner_address = $data['miner_address'] ?? null;
if (!empty($miner_address)) {
$exist = AirDrop::find()->where(['identifier' => $identifier, 'miner_address' => $miner_address])->one();
if (false == $exist) {
$this->code = -1;
$this->msg = '设备号和矿工地址不匹配,请重新确认.';
goto doEnd;
}
}
// $miner_address = $data['miner_address'] ?? null;
// if (!empty($miner_address)) {
// $exist = AirDrop::find()->where(['identifier' => $identifier, 'miner_address' => $miner_address])->one();
// if (false == $exist) {
// $this->code = -1;
// $this->msg = '设备号和矿工地址不匹配,请重新确认.';
// goto doEnd;
// }
// }
doEnd :
return ['code' => $this->code, 'msg' => $this->msg, 'data' => $this->data];
......
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