mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-11-28 01:11:00 +01:00
Merge pull request #50 from shiroikitsu8/master-asakura
fix default crown hiroshima missing and shop name
This commit is contained in:
commit
804fcee27a
@ -12,7 +12,8 @@ const STARTUP_HOST = `${Config.getConfig().serverIp || "localhost"}:9002`;
|
||||
export default class AllnetModule extends Module {
|
||||
register(app: Application): void {
|
||||
app.use(bodyParser.raw({
|
||||
type: '*/*'
|
||||
type: '*/*',
|
||||
limit: '50mb' // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem)
|
||||
}));
|
||||
|
||||
app.use("/sys/servlet/PowerOn", function(req, res, next) {
|
||||
@ -70,7 +71,7 @@ export default class AllnetModule extends Module {
|
||||
const adjusted = now;
|
||||
|
||||
let shopName = Config.getConfig().shopName;
|
||||
let shopNick = Config.getConfig().shopNickname;
|
||||
let shopNick = Config.getConfig().shopName;
|
||||
let regionName = Config.getConfig().regionName;
|
||||
let placeId = Config.getConfig().placeId;
|
||||
let country = Config.getConfig().country;
|
||||
|
@ -37,7 +37,8 @@ const muchaApp = express();
|
||||
const allnetApp = express();
|
||||
|
||||
app.use(bodyParser.raw({
|
||||
type: '*/*'
|
||||
type: '*/*',
|
||||
limit: '50mb' // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem)
|
||||
}));
|
||||
|
||||
let useSentry = !!Config.getConfig().sentryDsn;
|
||||
|
@ -535,10 +535,6 @@ export default class CarModule extends Module {
|
||||
|
||||
// Car update data
|
||||
data = {
|
||||
name: common.sanitizeInput(cars.name),
|
||||
manufacturer: common.sanitizeInput(cars.manufacturer),
|
||||
model: common.sanitizeInput(cars.model),
|
||||
visualModel: common.sanitizeInput(cars.visualModel),
|
||||
customColor: common.sanitizeInput(cars.customColor),
|
||||
wheel: common.sanitizeInput(cars.wheel),
|
||||
wheelColor: common.sanitizeInput(cars.wheelColor),
|
||||
|
@ -49,6 +49,22 @@ export default class ResourceModule extends Module {
|
||||
}
|
||||
})
|
||||
}
|
||||
else
|
||||
{
|
||||
if(checkPlaceList.shopName !== Config.getConfig().shopName)
|
||||
{
|
||||
await prisma.placeList.update({
|
||||
where:{
|
||||
id: checkPlaceList.id
|
||||
},
|
||||
data:{
|
||||
regionId: Number(Config.getConfig().placeId),
|
||||
shopName: Config.getConfig().shopName,
|
||||
country: Config.getConfig().country
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Encode the response
|
||||
let message = wm.wm.protobuf.PlaceList.encode({places});
|
||||
@ -451,7 +467,7 @@ export default class ResourceModule extends Module {
|
||||
else
|
||||
{
|
||||
// Loop GID_RUNAREA
|
||||
for(let i=0; i<14; i++)
|
||||
for(let i=0; i<19; i++)
|
||||
{
|
||||
// After Kobe is Hiroshima then Fukuoka and the rest
|
||||
if(i > 14)
|
||||
|
@ -12,7 +12,8 @@ export default class MuchaModule extends Module {
|
||||
|
||||
app.use(express.urlencoded({
|
||||
type: '*/*',
|
||||
extended: true
|
||||
extended: true,
|
||||
limit: '50mb', // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem)
|
||||
}))
|
||||
|
||||
app.post('/updatacheck.do', (req, res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user