Commit 1c1229e8 authored by rlgy's avatar rlgy

update

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