|
@@ -23,7 +23,7 @@ class Service_Invitation extends Lib_Service |
|
@@ -23,7 +23,7 @@ class Service_Invitation extends Lib_Service |
23
|
*/
|
23
|
*/
|
24
|
public function add ($type, $category, $sub, $name, $contacter, $phone, $email)
|
24
|
public function add ($type, $category, $sub, $name, $contacter, $phone, $email)
|
25
|
{
|
25
|
{
|
26
|
- return self::service(self::ROUTER)->cache(false)->insert('add', array(
|
26
|
+ return self::service(self::ROUTER)->tag(self::$_tag)->insert('add', array(
|
27
|
'type' => $type,
|
27
|
'type' => $type,
|
28
|
'category' => $category,
|
28
|
'category' => $category,
|
29
|
'sub' => $sub,
|
29
|
'sub' => $sub,
|
|
@@ -59,11 +59,6 @@ class Service_Invitation extends Lib_Service |
|
@@ -59,11 +59,6 @@ class Service_Invitation extends Lib_Service |
59
|
$replaces = array(
|
59
|
$replaces = array(
|
60
|
'UPDATE'=> implode(', ', $data)
|
60
|
'UPDATE'=> implode(', ', $data)
|
61
|
);
|
61
|
);
|
62
|
- $status = self::service(self::ROUTER)->cache(false)->update('update',array('id'=>$id),$replaces)->status();
|
|
|
63
|
- if($status)
|
|
|
64
|
- {
|
|
|
65
|
- self::service(self::ROUTER)->delTags(self::$_tag);
|
|
|
66
|
- }
|
|
|
67
|
- return $status;
|
62
|
+ return self::service(self::ROUTER)->tag(self::$_tag)->update('update',array('id'=>$id),$replaces)->status();
|
68
|
}
|
63
|
}
|
69
|
} |
64
|
} |