Commit bf69f24e authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

Feature/optimize See merge request !424
parents 34cd4a43 3877d975
......@@ -31,6 +31,16 @@ 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;
}
}
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