Authored by wuxiao

邀请函需求,修复不更新缓存的问题

... ... @@ -61,7 +61,7 @@ class Facade_Invitation
* @param int $status 是否显示,1:显示,0:不显示
* @return boolean
*/
public function showInApplyList($id, $status)
public static function showInApplyList($id, $status)
{
return self::service()->update($id,array(
'show_in_apply'=>$status
... ... @@ -75,7 +75,7 @@ class Facade_Invitation
* @param int $status 是否显示,1:显示,0:不显示
* @return boolean
*/
public function showInPassList($id, $status)
public static function showInPassList($id, $status)
{
return self::service()->update($id,array(
'show_in_pass'=>$status
... ...
... ... @@ -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();
}
}
... ...