function uninstall() { $obj = $this->system->loadModel("plugins/openid_taobao/openid_taobao_center_send"); $return = $obj->edit_app_status("close"); if ($return['result'] == 'succ') { return parent::uninstall(); } else { echo "卸载失败"; return false; } }
function uninstall() { if (is_dir(dirname(dirname(dirname(__FILE__))) . '/widgets/scarebuying')) { if (!$this->deldir(dirname(dirname(dirname(__FILE__))) . '/widgets/scarebuying')) { echo '卸载失败'; exit; } } parent::uninstall(); return true; }
function uninstall() { $order_id = array(); $orderdata = $this->db->select("SELECT order_id FROM sdb_orders WHERE order_refer ='taobao';"); foreach ($orderdata as $key => $value) { $order_id[] = $value['order_id']; } $this->db->exec("DELETE FROM sdb_orders WHERE order_refer ='taobao';"); if ($order_id) { $this->db->exec("DELETE FROM sdb_order_items WHERE order_id IN(" . implode(",", $order_id) . ");"); } $this->db->exec("DELETE FROM sdb_status WHERE status_key ='TB_SESS' or status_key ='LAST_SYNCHRONIZATION';"); return parent::uninstall(); }
function uninstall() { $this->db->exec('delete from sdb_payment_cfg where pay_type ="' . $this->type . '"'); return parent::uninstall(); }
function uninstall() { parent::uninstall(); return true; }