diff --git a/app/Services/UserWalletService.php b/app/Services/UserWalletService.php index 3327993..8287c57 100644 --- a/app/Services/UserWalletService.php +++ b/app/Services/UserWalletService.php @@ -32,6 +32,7 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use App\Models\SubscribeActivity; use Carbon\Carbon; +use Mews\Captcha\Facades\Captcha; class UserWalletService { @@ -378,6 +379,11 @@ class UserWalletService } } + # 提币验证码 + public function wdcode(){ + return $this->successWithData(Captcha::create("math", true)); + } + #提币 public function withdraw($user_id, $coin_id, $address, $amount, $address_note, $address_type) { diff --git a/routes/cwp_api.php b/routes/cwp_api.php index 0978624..70e494c 100644 --- a/routes/cwp_api.php +++ b/routes/cwp_api.php @@ -12,6 +12,7 @@ $api->group(['namespace' => 'V1','middleware'=>'auth.api'], function ($api) { $api->post('user/recharge','UserWalletController@recharge');//用户充币 $api->post('user/rechargeDispose','UserWalletController@recharge_dispose');//用户处理 $api->post('user/depositHistory','UserWalletController@deposit_history');//用户充币记录 + $api->get('user/wdcode','UserWalletController@wdcode');//提币验证码 $api->post('user/withdraw','UserWalletController@withdraw')->middleware(['checkTopAuth']);//用户提币 $api->post('user/withdrawDispose','UserWalletController@withdraw_dispose');//用户提币处理 $api->post('user/withdrawalRecord','UserWalletController@withdrawal_record');//用户提币记录 diff --git a/routes/yx_api.php b/routes/yx_api.php index 48c065c..c071cf1 100644 --- a/routes/yx_api.php +++ b/routes/yx_api.php @@ -17,7 +17,7 @@ $api->group(['namespace' => 'V1'], function ($api) { $api->post('register/sendSmsCode','LoginController@sendSmsCode');//注册发送短信验证码 $api->post('login/sendSmsCodeBeforeLogin','LoginController@sendSmsCodeBeforeLogin');//登陆发送短信验证码 $api->post('register/sendEmailCode','LoginController@sendEmailCode');//注册发送邮箱验证码 - $api->get('register/Graph_che','LoginController@Graph_che');//注册发送邮箱验证码 + $api->get('register/Graph_che','LoginController@Graph_che');//图形验证码 $api->post('login/sendEmailCodeBeforeLogin','LoginController@sendEmailCodeBeforeLogin');//登陆发送邮箱验证码 $api->post('user/register','LoginController@register');//注册 $api->post('user/login','LoginController@login');//登录