Commit dc360af5 by 冷斌

add

parent f8460cd0
......@@ -940,15 +940,9 @@ class Api_User extends PhalApi_Api {
return $rs;
}
if(!$accountid){
$rs['code'] = 1001;
$rs['msg'] = '请选择提现账号';
return $rs;
}
if(!$cashvote){
if($cashvote <= 0){
$rs['code'] = 1002;
$rs['msg'] = '请输入有效的提现票数';
$rs['msg'] = '请输入有效的提现金额';
return $rs;
}
......
......@@ -157,9 +157,7 @@ class Model_User extends PhalApi_Model_NotORM
/* 提现 */
public function setCash($data)
{
$nowtime = time();
$uid = $data['uid'];
$accountid = $data['accountid'];
$cashvote = $data['cashvote'];
......@@ -221,16 +219,16 @@ class Model_User extends PhalApi_Model_NotORM
$name = $account = $account_bank = '';
if ($accountid == 1) {
if ($accountid == 0) {
$account = $accountinfo['account'];
$name = $accountinfo['username'];
}
//
// if ($accountid == 2) {
// return 1007;
// }
if ($accountid == 2) {
return 1007;
}
if ($accountid == 3) {
if ($accountid == 1) {
$name = $accountinfo['name'];
$account = $accountinfo['bank_card'];
$account_bank = $accountinfo['bank_province'] . $accountinfo['bank_city'];
......
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