|
@@ -7,7 +7,7 @@ class Info
|
|
|
public function getUserInfo($uid, $config_id = false)
|
|
|
{
|
|
|
$info = $this->getInfo($uid, $config_id);
|
|
|
- return array('name' => $info['config']['name'], 'cash' => $info['cash']);
|
|
|
+ return array('name' => $info['config']['name'], 'cash' => $info['cash'], 'info_id' => $info['id']);
|
|
|
}
|
|
|
|
|
|
# 获取账户信息
|
|
@@ -49,7 +49,7 @@ class Info
|
|
|
}
|
|
|
|
|
|
# 入账
|
|
|
- public function up_commit($uid, $cash, $type, $config, $desc = '', $source = '', $source_id = '', $method = 1, $state = true)
|
|
|
+ public function up_commit($uid, $cash, $type, $config, $desc = '', $source = '', $source_id = '', $method = 1, $state = true, $result = false)
|
|
|
{
|
|
|
if ($cash == 0) {
|
|
|
return $this->alert('金额不能为0', $state);
|
|
@@ -170,6 +170,10 @@ class Info
|
|
|
$update['clear'] = true;
|
|
|
Dever::db('account/info')->$func($update);
|
|
|
}
|
|
|
+ if ($result) {
|
|
|
+ $data['id'] = $id;
|
|
|
+ return $data;
|
|
|
+ }
|
|
|
return $yue;
|
|
|
}
|
|
|
|