public function refuse() { $id = intval($_REQUEST['id']); $ajax = intval($_REQUEST['ajax']); $info = "活动报名ID:" . $id; require_once APP_ROOT_PATH . "system/model/event.php"; refuse_event_submit($id); save_log($info . "报名审核被拒绝", 1); $this->success("操作成功"); }
public function refuse() { require_once APP_ROOT_PATH . 'system/model/event.php'; $s_account_info = $GLOBALS["account_info"]; $supplier_id = intval($s_account_info['supplier_id']); $id = intval($_REQUEST['id']); $event_ids = $GLOBALS['db']->getRow("select group_concat(event_id SEPARATOR ',') as ids from " . DB_PREFIX . "event_location_link where location_id in (" . implode(",", $s_account_info['location_ids']) . ")"); $event_ids = explode(',', $event_ids['ids']); $auth_id = $GLOBALS['db']->getOne("select event_id from " . DB_PREFIX . "event_submit where id=" . $id); if (!in_array($auth_id, $event_ids)) { $result['status'] = 2; ajax_return($result); } //$GLOBALS['db']->query("update ".DB_PREFIX."event_submit set is_verify=1 where id=".$id." and event_id in (".$event_ids['ids'].")"); refuse_event_submit($id); if ($GLOBALS['db']->affected_rows()) { $result['status'] = 1; $result['show_code'] = "已拒绝"; ajax_return($result); } else { showErr("操作失败", 1); } }