Skip to content

Commit

Permalink
push-release
Browse files Browse the repository at this point in the history
  • Loading branch information
secpro committed Dec 20, 2020
1 parent 02b5eeb commit bbf77ef
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 502 deletions.
7 changes: 6 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/*
* @Date: 2020-12-20 21:41:22
* @LastEditors: kanoyami
* @LastEditTime: 2020-12-20 22:03:46
*/
const createError = require('http-errors');
const express = require('express');
const path = require('path');
const cookieParser = require('cookie-parser');
const history = require('connect-history-api-fallback');
const index = require("./routes/index")
const expressWs = require('express-ws');
const __PORT__ = 10399;
const __PORT__ = 12451;
const messageHandler = require("./handler/message");


Expand Down
3 changes: 3 additions & 0 deletions handler/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ async function MessageHandler(message) {
}

function processUserinfo(userinfo) {

if (!userinfo) { return {} }

if (userinfo.badge) {
let medal = JSON.parse(userinfo.badge).medalInfo
let medalInfo = {
Expand Down
Loading

0 comments on commit bbf77ef

Please sign in to comment.