Your Name 3 năm trước cách đây
mục cha
commit
52438b200a
3 tập tin đã thay đổi với 22 bổ sung8 xóa
  1. 5 5
      tool/work/database/appoint.php
  2. 1 0
      tool/work/database/user.php
  3. 16 3
      tool/work/lib/Appoint.php

+ 5 - 5
tool/work/database/appoint.php

@@ -18,11 +18,11 @@ return array
     # 后台菜单排序
     'order' => 2,
     'menu' => false,
-    // 'start' => array
-    // (
-    //     'insert' => 'work/lib/appoint.InsertAppoint',
-    //     'update' => 'work/lib/appoint.InsertAppoint',
-    // ),
+    'start' => array
+    (
+        'insert' => 'work/lib/appoint.insertAppoint',
+        'update' => 'work/lib/appoint.insertAppoint',
+    ),
     'end' => array
     (
     	'insert' => 'work/lib/appoint.updateAppoint',

+ 1 - 0
tool/work/database/user.php

@@ -5,6 +5,7 @@ $type = array
     1 => '代理商',
     2 => '期权账户',
     3 => '小程序用户',
+    4 => '客服系统用户',
 );
 return array
 (

+ 16 - 3
tool/work/lib/Appoint.php

@@ -31,6 +31,17 @@ Class Appoint
 		}
 
 	}
+
+    public function insertAppoint($id,$name,$data)
+    {
+        $info_id = Dever::param('info_id',$data);
+        if ($info_id) {
+            $info = Dever::db('work/info')->find($info_id);
+            if ($info['status']>=3){
+                Dever::alert('工单已关闭');
+            }
+        }
+    }
 	
 	public function updateAppoint($id,$name,$data)
 	{
@@ -395,6 +406,7 @@ Class Appoint
         			if ($user['passport_uid'] && $user['passport_uid']>0) {
         				$user['type'] = $user['type'].'<br/>小程序';
         			}
+                    $user['type'] = $user['type'].'<br/>客服系统用户';
 	                
         		} else {
         			if ($user['option_uid'] && $user['option_uid']>0) {
@@ -402,18 +414,20 @@ Class Appoint
         				if ($user['passport_uid'] && $user['passport_uid']>0) {
 	        				$user['type'] = $user['type'].'<br/>小程序';
 	        			}
+                        $user['type'] = $user['type'].'<br/>客服系统用户';
         			} else {
         				if ($user['passport_uid'] && $user['passport_uid']>0) {
 	        				$user['type'] = '小程序';
+                            $user['type'] = $user['type'].'<br/>客服系统用户';
 	        			} else {
-	        				$user['type'] = '无系统关联关系';
+                            $user['type'] = '客服系统用户';
+	        				// $user['type'] = '无系统关联关系';
 	        			}
         			}
         		}
         		if ($user['agent_uid']) {
         			$user['order'] = Dever::url('project/database/list?project=agent&table=order&p=1&search_option_mid='.$user['agent_uid'], 'manage');
         			$user['agent'] = Dever::url('project/database/list?project=agent&table=member_area&mid='.$user['agent_uid'].'&page_type=1&search_auth=1&page_type=1&jump=19','manage');
-        			// ('project/database/list?project=agent&table=member&search_option_id='.$user['agent_uid'], 'manage');
         			$user['soft'] = Dever::url('project/database/list?project=agent&table=soft_cash&search_option_mid='.$user['agent_uid'], 'manage');
         		}
         		if ($user['option_uid']) {
@@ -445,7 +459,6 @@ Class Appoint
             }
             $data['page'] = Dever::page("current");
         }
-        // print_R($data);die;
         return Dever::render('back', $data);
     }
 }