|
@@ -220,15 +220,24 @@ Class Option_account{
|
|
|
return 'reload';
|
|
|
}
|
|
|
public function updateAccount($id,$name,$data){
|
|
|
+ if($id){
|
|
|
+ $admin = Dever::load('manage/auth.data');
|
|
|
+ $where['where_id'] = $id;
|
|
|
+ $where['audit_admin'] = $admin['id'];
|
|
|
+ Dever::db('agent/option_account')->update($where);
|
|
|
+ }
|
|
|
$audit = Dever::param('audit',$data);
|
|
|
+ $num = Dever::param('num',$data);
|
|
|
$id = Dever::param('id',$data);
|
|
|
-
|
|
|
$info = Dever::db('agent/option_account')->find($id);
|
|
|
if($audit){
|
|
|
if ($audit == 1) {
|
|
|
$where['where_id'] = $id;
|
|
|
$where['set_audit_date'] = time();
|
|
|
$where['set_audit_type'] = 2;
|
|
|
+ if($num){
|
|
|
+ $where['set_num'] = $num;
|
|
|
+ }
|
|
|
Dever::db('agent/option_account')->update($where);
|
|
|
}
|
|
|
|