/** * 记录申请信息 * @param array $data * @return bool|mixed */ public static function addApply($data = array()) { try { $obj = new Model_WeiLiao_FlashMan(); foreach ($data as $key => $value) { $obj->{$key} = $value; } $obj->createTime = time(); $obj->save(); return $obj->id; } catch (Exception $e) { return false; } }