Commit ad798e06 by 冷斌

update

parent 0a8d32dd
...@@ -245,6 +245,7 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -245,6 +245,7 @@ class Model_User extends PhalApi_Model_NotORM
$name = $account = $account_bank = ''; $name = $account = $account_bank = '';
if ($accountid == 0) { if ($accountid == 0) {
$accountid = 1;
$account = $accountinfo['account']; $account = $accountinfo['account'];
$name = $accountinfo['username']; $name = $accountinfo['username'];
} }
...@@ -254,6 +255,7 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -254,6 +255,7 @@ class Model_User extends PhalApi_Model_NotORM
// } // }
if ($accountid == 1) { if ($accountid == 1) {
$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'];
...@@ -271,6 +273,7 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -271,6 +273,7 @@ class Model_User extends PhalApi_Model_NotORM
"account_bank" => $account_bank, "account_bank" => $account_bank,
"account" => $account, "account" => $account,
"name" => $name, "name" => $name,
'source' => $source,
]; ];
$rs = DI()->notorm->users_cashrecord->insert($data); $rs = DI()->notorm->users_cashrecord->insert($data);
......
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