fy

Results 107 comments of fy

> 能麻烦提供个demo 资源吗, 之前发论坛了,就这个 http://ask.layabox.com/question/48988

请问有消息了吗?换了个模型又试了一次 还是有问题。动作是从mixamo上弄的 用unity2018也试过 同样是不行。 另外cocos可以

emmmmm 之前requirements里的slim版本太旧了,导致了问题,最近更新了,还在抽空写文档。 @lybing 你没安装requirements。我觉得我还是弄个dockerfile吧 这样简单些

emmmmm 我觉得匿名评论还可以,匿名发帖的话,会不会降低对言论的负责程度?

这倒是真的,待我稍有余力吧。 其实这个项目,前端是非常典型的vue项目,和官方给的最佳实践基本一致,应该比较容易理解。 后端就麻烦一些,不过大体走向也不难说清: view和Django的view是一个概念,其实就是mvc中的controller层,其中所有继承PeeweeView的类,都会对外暴露出get list set delete这几个接口(参见netapi.js的SlimViewRequest,其中update和set是同一个接口)。 ```python @route('topic') class TopicView(UserMixin, PeeweeView): model = Topic ``` 例如上面这个例子,这个类的数据表对应到Topic这个model,几个接口映射到 /api/topic/xxx 下 后端对这几个接口有若干专门的钩子来控制(before_xxxx和after_xxx),用于数据校验和处理。 另外与用户有关的接口,除了PeeweeView之外还要继承UserMixin,这样才能取到self.current_user。 自定义接口在类中写个async方法,然后加上`@route.interface('POST')`或`@route.interface('GET')`等装饰器就行了。 View中取params是`self.params`,取post数据是`post = await self.post_data()`,大致就是这样了。

你好 默认配置不存在跨域问题,参见config.py: CORS_OPTIONS = CORSOptions('*', allow_credentials=True, expose_headers='*', allow_headers='*')

大概是你pipenv中的本地环境没有qiniu吧,不过讲道理按照部署文档走一遍应该没问题啊?

Hi, I need some time to make it functional and stable at first.

@jrborbars Thanks my friend. I agree with you and i'm adequate to add english translation. But backend framework is not stable so i should reconsider about the architecture, to make...