V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  saleacy  ›  全部回复第 3 页 / 共 5 页
回复总数  81
1  2  3  4  5  
@seln 不发短信只收短信可以吗
👾
@busier 现在好像都卖叠瓦盘了
41 天前
回复了 superdotcom 创建的主题 VPS 转让一个 VPS
@superdotcom 我已经申请了两年半了 每次都是 abc 信用卡也能成功扣费
41 天前
回复了 superdotcom 创建的主题 VPS 转让一个 VPS
你们的甲骨文怎么注册的
XX 大屏
2024-11-27 00:28:11 +08:00
回复了 saleacy 创建的主题 Go 编程语言 为什么 GORM 的 db.raw 在 sql 中用 mysql as 别名查询会赋空值
@rrfeng 很强!

r.GET("/fp", utils.AuthMiddleware, func(c *gin.Context) {
username := c.MustGet("username").(string)

var products []struct {
Age string `gorm:"column:a"`
TaobaoID string `gorm:"column:b"`
MinPrice float64 `gorm:"column:c"`
TPrice int `gorm:"column:d"`
}

if err := db.Raw(`select products.age as a,products.min_price as b,products.taobao_id as c from products join users where users.username = ?`, username).Scan(&products).Error; err != nil {
c.JSON( http.StatusInternalServerError, gin.H{"error": "Could not retrieve user products"})
return
}

c.JSON( http.StatusOK, products)
})


[root@ctos0 routes]# curl -X GET http://localhost:8080/fp -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzI2ODg1OTQsImlzcyI6ImFhYSJ9.CRiAl3SG509O2XkB-a_aXtnNcgFORZsbP_7M-580HBg"
[GIN] 2024/11/26 - 11:26:53 | 200 | 821.97µs | ::1 | GET "/fp"
[{"p.age":"333","p.taobao_id":"033","p.min_price":129,"pr.t_price":79},{"p.age":"222","p.taobao_id":"022","p.min_price":129,"pr.t_price":79}]
2024-11-27 00:18:10 +08:00
回复了 saleacy 创建的主题 Go 编程语言 为什么 GORM 的 db.raw 在 sql 中用 mysql as 别名查询会赋空值
@rrfeng 没怎么用过😅
2023-12-26 11:28:34 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
@zuotun 感谢分享帮助 问题已解决
2023-12-13 10:05:08 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
确实是/etc/nginx/mime.types 的问题 感谢各位的帮助
2023-12-13 10:04:46 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
2023-12-13 10:04:34 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
2023-12-12 22:58:24 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
在 172.18.231.93 上面用 wget curl 能读到通过 nginx 代理发布后的.ctl 后缀的文件
2023-12-12 22:24:15 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
.ctl 后缀的文件访问都是 502😨
2023-12-12 22:20:33 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
包括其他目录,就 ctl 后缀的文件报 502 错误,wget 也是 502 ,其他后缀都能正常访问,用 wget 保存。
2023-12-12 22:19:33 +08:00
回复了 saleacy 创建的主题 NGINX Linux -Nginx 遇到一个玄学问题!
害怕了兄弟们,不敢睡觉了 i😨
2023-03-27 16:48:42 +08:00
回复了 sockball07 创建的主题 程序员 crontab 未执行的问题
date 没用绝对路径
2022-05-28 10:16:51 +08:00
回复了 saleacy 创建的主题 问与答 从上海回老家,公积金社保应该怎么办?
好的 感谢各位解答👍 帮助很大
2022-05-21 02:10:20 +08:00
回复了 tlmn 创建的主题 程序员 如何为 Linux 下的命令设置色彩输出?
| lolcat
1  2  3  4  5  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2457 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 06:31 · PVG 14:31 · LAX 22:31 · JFK 01:31
♥ Do have faith in what you're doing.