'异常' ,1=> '正常']; /** * 根据用户id创建不同模型 * @param $user_id * @return string */ public static function getFinancialRecordModel($user_id){ if ($user_id){ $buider = null; $index = $user_id % 5; $model_name = 'App\\Models\\'.'FinancialRecord'.$index; $buider = new $model_name(); return $buider; } } }