45 lines
1.4 KiB
PHP
45 lines
1.4 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace app\api\controller;
|
||
|
|
|
||
|
|
use app\common\controller\BaseCom;
|
||
|
|
|
||
|
|
class Bind extends BaseCom
|
||
|
|
{
|
||
|
|
//绑定方式
|
||
|
|
public function bindType()
|
||
|
|
{
|
||
|
|
$user_id = input('user_id', 0);
|
||
|
|
$system = input('system','');
|
||
|
|
if(empty($system)){
|
||
|
|
$system = request()->header('system');
|
||
|
|
}
|
||
|
|
$reslut = model('UserData')->bind_withdraw_account($user_id,$system);
|
||
|
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||
|
|
}
|
||
|
|
|
||
|
|
//绑定
|
||
|
|
public function bind()
|
||
|
|
{
|
||
|
|
$user_id = input('user_id', 0);
|
||
|
|
$type = input('type', '');
|
||
|
|
// $alipay_name = input('alipay_name','');
|
||
|
|
$alipay_account = input('alipay_account','');
|
||
|
|
$bank_card_number = input('bank_card_number','');
|
||
|
|
$bank_user_name = input('bank_user_name','');
|
||
|
|
$bank_card = input('bank_card','');
|
||
|
|
$open_bank = input('open_bank','');
|
||
|
|
|
||
|
|
$reslut = model('UserData')->bind_xinxi($user_id,$type,$alipay_account,$bank_card_number,$bank_user_name,$bank_card,$open_bank);
|
||
|
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||
|
|
}
|
||
|
|
|
||
|
|
//绑定详情api/Bind/bind_detail
|
||
|
|
public function bind_detail()
|
||
|
|
{
|
||
|
|
$user_id = input('user_id', 0);
|
||
|
|
$type = input('type', '');
|
||
|
|
$reslut = model('UserData')->bind_xinxi_detail($user_id,$type);
|
||
|
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||
|
|
}
|
||
|
|
}
|