fix: 离线证到期重签空邮箱撞唯一索引

复用 customer_id/同名客户,禁止重复插入空 email;重签前端带回原客户。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Logan.LiandCursor committed 2026-08-12 21:49:55 +08:00
1 parent bac72e6945
commit f26e787cfc
4 files changed
+62 -24

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ type LicenseResponse struct {
DeviceID string `json:"device_id,omitempty"` // 离线证绑定设备
CustomerID uint `json:"customer_id"`
CustomerName string `json:"customer_name"`
CustomerEmail string `json:"customer_email,omitempty"`
ProductID uint `json:"product_id"`
ProductName string `json:"product_name"`
Status string `json:"status"`