$uid])) { $data['status'] = 0; return self::edit($data, $uid, 'uid'); } else { $data['uid'] = $uid; $data['add_time'] = time(); return self::set($data); } } /**检查是否申请 * @param $uid */ public static function inspectStatus($uid) { return self::where(['uid' => $uid, 'is_del' => 0])->field('status,fail_message')->find(); } /**申请数据 * @param $uid */ public static function inspectUserEnter($uid) { return self::where(['uid' => $uid, 'is_del' => 0])->find(); } }