Commit 1c1229e8 authored by rlgy's avatar rlgy

update

parent 3b909050
...@@ -16,6 +16,7 @@ use common\models\psources\CoinReleaseMember; ...@@ -16,6 +16,7 @@ use common\models\psources\CoinReleaseMember;
use h5\base\ResponseBuild; use h5\base\ResponseBuild;
use Yii; use Yii;
use h5\base\BaseController; use h5\base\BaseController;
use common\business\ZhaobiBusiness;
class GuodunController extends BaseController class GuodunController extends BaseController
{ {
...@@ -66,7 +67,7 @@ class GuodunController extends BaseController ...@@ -66,7 +67,7 @@ class GuodunController extends BaseController
$response = new ResponseBuild(); $response = new ResponseBuild();
$post = Yii::$app->request->post(); $post = Yii::$app->request->post();
$field = ['id', 'address', 'mobile', 'amount', 'validate_code']; $field = ['id', 'address', 'amount', 'uid', 'type', 'code', 'codetype'];
foreach ($field as $item) { foreach ($field as $item) {
if (isset($post[$item]) && !empty($post[$item])) { if (isset($post[$item]) && !empty($post[$item])) {
$$item = $post[$item]; $$item = $post[$item];
...@@ -75,8 +76,12 @@ class GuodunController extends BaseController ...@@ -75,8 +76,12 @@ class GuodunController extends BaseController
return $response; return $response;
} }
} }
$note = $post['note'] ?? '';
//todo 验证验证码 $validate = ZhaobiBusiness::validateCode($uid, $codetype, $code, $type);
if ($validate['code'] != 200) {
$response->build($validate['code'], $validate['message']);
return $response;
}
$user_asset = CoinReleaseMember::findOne([$id]); $user_asset = CoinReleaseMember::findOne([$id]);
//判断余额师傅充足 //判断余额师傅充足
......
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