krissss / webman-eloquent-ide-helper

12 stars 3 forks source link

IDE生成注释与webman模型注释分不清 #7

Closed YouZiXiL closed 4 months ago

YouZiXiL commented 4 months ago

image image

krissss commented 4 months ago

使用生成到模型上的方式:

php webman ide-helper:models --write

或者生成时提示是否要写到模型上,输入 y

YouZiXiL commented 4 months ago

使用生成到模型上的方式:

php webman ide-helper:models --write

或者生成时提示是否要写到模型上,输入 y image image 直接取不出模型字段了

YouZiXiL commented 4 months ago

可能跟webman框架有关系 加上声明就可以了 image

krissss commented 4 months ago

使用 Users::query()->where()->first() 的形式代替直接使用 Users::where,因为 Users::where 的代码提示是由 webman support\Model 提供的,ide-helper:models 会给当前的 Users 模型添加 query() 的注释,能正常自动解析到当前的类

你加注释当然可以,但这就相当于不要用这个 ide-helper 去生成任何的提示了,用当前这个工具的目的就是为了免去一个个去写注释呀

zhuochengs commented 4 months ago

@YouZiXiL 您好: 想咨询下您, https://github.com/yansongda/pay/issues/837 这个错误你最后是如何解决的?我现在也遇到了同样的问题,谢谢! 我的邮箱是624753698@qq.com,非常感谢!!

YouZiXiL commented 3 months ago

@YouZiXiL 您好: 想咨询下您, yansongda/pay#837 这个错误你最后是如何解决的?我现在也遇到了同样的问题,谢谢! 我的邮箱是624753698@qq.com,非常感谢!!

应该是API密钥错了