...
|
...
|
@@ -23,7 +23,7 @@ class Service_Invitation extends Lib_Service |
|
|
*/
|
|
|
public function add ($type, $category, $sub, $name, $contacter, $phone, $email)
|
|
|
{
|
|
|
return self::service(self::ROUTER)->cache(false)->insert('add', array(
|
|
|
return self::service(self::ROUTER)->tag(self::$_tag)->insert('add', array(
|
|
|
'type' => $type,
|
|
|
'category' => $category,
|
|
|
'sub' => $sub,
|
...
|
...
|
@@ -59,11 +59,6 @@ class Service_Invitation extends Lib_Service |
|
|
$replaces = array(
|
|
|
'UPDATE'=> implode(', ', $data)
|
|
|
);
|
|
|
$status = self::service(self::ROUTER)->cache(false)->update('update',array('id'=>$id),$replaces)->status();
|
|
|
if($status)
|
|
|
{
|
|
|
self::service(self::ROUTER)->delTags(self::$_tag);
|
|
|
}
|
|
|
return $status;
|
|
|
return self::service(self::ROUTER)->tag(self::$_tag)->update('update',array('id'=>$id),$replaces)->status();
|
|
|
}
|
|
|
} |
...
|
...
|
|