|
@@ -66,7 +66,7 @@ Class Manage
|
|
|
$where['fpeople'] = $data['audit_admin'];
|
|
|
}
|
|
|
// if ($app['admin_id'] != $data['audit_admin']){
|
|
|
-
|
|
|
+
|
|
|
// }
|
|
|
Dever::db('work/info')->update($where);
|
|
|
$log = Dever::db('work/info_log')->find(array('info_id'=>$id));
|
|
@@ -82,6 +82,16 @@ Class Manage
|
|
|
return 'ok';
|
|
|
}
|
|
|
}
|
|
|
+ public function insertInfo($id,$name,$data) {
|
|
|
+ $mobile = Dever::param('mobile',$data);
|
|
|
+ if(!preg_match('/^1[3|5|6|7|8|9]\d{9}$/', $mobile)){
|
|
|
+ Dever::alert('手机号不正确');
|
|
|
+ }
|
|
|
+ $cate_id = Dever::param('cate_id',$data);
|
|
|
+ if ($cate_id[0]<0) {
|
|
|
+ Dever::alert('问题类型不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
public function updateInfo($id,$name,$data)
|
|
|
{
|
|
|
$mobile = Dever::param('mobile',$data);
|