Commit dc360af5 by 冷斌

add

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