hook = true; $uid = Dever::param('uid', $data); $cash = Dever::param('cash', $data); $desc = Dever::param('desc', $data); $config_id = Dever::param('config_id', $data); $type_id = Dever::param('type_id', $data); $config = $type = array(); if ($config_id) { $config = Dever::db('account/config')->find($config_id); } if ($type_id) { $type = Dever::db('account/config_type')->find($type_id); } if (!$config) { Dever::alert('账户信息不存在'); } if (!$type) { Dever::alert('交易类型不存在'); } Dever::load('account/lib/info.up_commit', $uid, $cash, $type['key'], $config['key'], $desc, 'account/push', $id, 2); } /** * 设置主账户 * * @return mixed */ public function config($id, $name, $param) { Dever::config('base')->hook = true; $type = Dever::param('type', $param); if ($type == 1) { Dever::db('account/config')->updates(array('option_type' => 1, 'set_type' => 2)); Dever::db('account/config')->update(array('where_id' => $id, 'type' => 1)); } } }