Browse Source

提币验证码

master
453530270@qq.com 3 years ago
parent
commit
21b0f8fe22
  1. 6
      app/Services/UserWalletService.php
  2. 1
      routes/cwp_api.php
  3. 2
      routes/yx_api.php

6
app/Services/UserWalletService.php

@ -32,6 +32,7 @@ use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
use App\Models\SubscribeActivity; use App\Models\SubscribeActivity;
use Carbon\Carbon; use Carbon\Carbon;
use Mews\Captcha\Facades\Captcha;
class UserWalletService 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) public function withdraw($user_id, $coin_id, $address, $amount, $address_note, $address_type)
{ {

1
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/recharge','UserWalletController@recharge');//用户充币
$api->post('user/rechargeDispose','UserWalletController@recharge_dispose');//用户处理 $api->post('user/rechargeDispose','UserWalletController@recharge_dispose');//用户处理
$api->post('user/depositHistory','UserWalletController@deposit_history');//用户充币记录 $api->post('user/depositHistory','UserWalletController@deposit_history');//用户充币记录
$api->get('user/wdcode','UserWalletController@wdcode');//提币验证码
$api->post('user/withdraw','UserWalletController@withdraw')->middleware(['checkTopAuth']);//用户提币 $api->post('user/withdraw','UserWalletController@withdraw')->middleware(['checkTopAuth']);//用户提币
$api->post('user/withdrawDispose','UserWalletController@withdraw_dispose');//用户提币处理 $api->post('user/withdrawDispose','UserWalletController@withdraw_dispose');//用户提币处理
$api->post('user/withdrawalRecord','UserWalletController@withdrawal_record');//用户提币记录 $api->post('user/withdrawalRecord','UserWalletController@withdrawal_record');//用户提币记录

2
routes/yx_api.php

@ -17,7 +17,7 @@ $api->group(['namespace' => 'V1'], function ($api) {
$api->post('register/sendSmsCode','LoginController@sendSmsCode');//注册发送短信验证码 $api->post('register/sendSmsCode','LoginController@sendSmsCode');//注册发送短信验证码
$api->post('login/sendSmsCodeBeforeLogin','LoginController@sendSmsCodeBeforeLogin');//登陆发送短信验证码 $api->post('login/sendSmsCodeBeforeLogin','LoginController@sendSmsCodeBeforeLogin');//登陆发送短信验证码
$api->post('register/sendEmailCode','LoginController@sendEmailCode');//注册发送邮箱验证码 $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('login/sendEmailCodeBeforeLogin','LoginController@sendEmailCodeBeforeLogin');//登陆发送邮箱验证码
$api->post('user/register','LoginController@register');//注册 $api->post('user/register','LoginController@register');//注册
$api->post('user/login','LoginController@login');//登录 $api->post('user/login','LoginController@login');//登录

Loading…
Cancel
Save