happyfox-dot

Results 15 comments of happyfox-dot

this problem has been solved , I have upload the roms!

have upload the roms file up the repo. Howerver if you want to run this project ,you are required to run commands. ``` # path the nes python -m retro.import...

> > 这个问题是因为新建的数据库里没有用户记录,而用微信登陆的时候需要去访问数据库来获得当前最大的id,所以才出错 > > 噢,这个场景当初没发现,感谢提醒! 请问您解决了吗,能说下解决办法吗

> > > > 这个问题是因为新建的数据库里没有用户记录,而用微信登陆的时候需要去访问数据库来获得当前最大的id,所以才出错 > > > > > > > > > 噢,这个场景当初没发现,感谢提醒! > > > > > > 请问您解决了吗,能说下解决办法吗 > > 这个解决了,是在源码里改的,你找一下他那个逻辑中有一个,如果是新用户的话,他还是会去寻找数据库中存在的这个用户ID最大的那个,你把他改了就行了,明天我去找一下源码发出来 好的,十分感谢您 👍

> > > > ![image](https://user-images.githubusercontent.com/98293652/193435442-4b783505-33d2-4a38-b996-864579007bfd.png) 在`./cloudfunctions/userRouter/index.js`的第74行这里的逻辑有些问题,如果数据库中没有用户信息的话,这个当前的最大值是无法获取到的。 ![image](https://user-images.githubusercontent.com/98293652/193435499-6f3278c5-6c43-4af1-82f6-ef8a18f54a75.png) 第193行也是相同的问题 十分感谢

> > > > > > > > > ![image](https://user-images.githubusercontent.com/98293652/193435442-4b783505-33d2-4a38-b996-864579007bfd.png) 在`./cloudfunctions/userRouter/index.js`的第74行这里的逻辑有些问题,如果数据库中没有用户信息的话,这个当前的最大值是无法获取到的。 ![image](https://user-images.githubusercontent.com/98293652/193435499-6f3278c5-6c43-4af1-82f6-ef8a18f54a75.png) 第193行也是相同的问题 > > 十分感谢 您好,我在数据库为空的时候,直接使用命令 ```userinfo.user_id = 111``` 修改了这两个地方 同样出现了问题 ![image](https://user-images.githubusercontent.com/58945940/193438681-35059ee7-b901-46f9-87c8-d5f94e46acfa.png) 这个为什么呢?

> > > > 问题在 `res1.data[0].user_id + 1` 这个计算上,如果你没有删除的话,手动赋值 `userinfo.user_id = 111` 也会有误 这一行被我注释掉了,只保留了上面赋值操作,还是出现了数据库返回数据是空的问题 😢

> 谢谢这个问题终于解决了,报错是因为```let res2 = await learnerDB.orderBy('user_id', 'desc').limit(1).get()``` 造成的,注释掉,手动的创建的时候使用 ```userinfo_user.id = 111```.就行了。成功注册了第一条之后就可以正常使用了

hello guys !may this url would be helpful :https://drive.google.com/file/d/1Niuko6plK5RUm8FiPrQWu3KgKLDLECww/view?usp=sharing