Commit 50f00d10 authored by shajiaiming's avatar shajiaiming

fix

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