insert($moneyLog); } public static function getMoneyLogByFromId($id) { return Db::table(self::$table) ->where([ 'type' => 14, 'state' => 1, 'withdraw_log_id' => $id, ]) ->find(); } }