diff --git a/123.json b/123.json deleted file mode 100644 index 3dd0fb2..0000000 --- a/123.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "id": 1416, - "type": "normal", - "title": "多规格123123", - "subtitle": "多规格", - "weigh": 0, - "category_ids": "46", - "image": "https://demo.shopro.top/uploads/20230821/00e97b4723771626fb44bdbf56d35a73.jpg", - "images": [ - "https://demo.shopro.top/uploads/20230823/170a1630b9b3124e28feacd95646b453.png", - "https://demo.shopro.top/uploads/20230823/16f27aeea875d3ff395786ad48f2e38b.png", - "https://demo.shopro.top/uploads/20230821/00e97b4723771626fb44bdbf56d35a73.jpg" - ], - "params": null, - "content": "\u003cp\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230821/00e97b4723771626fb44bdbf56d35a73.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230821/da48a8a2595d0efd619984ebd7e22bd9.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230819/8659310afe6e0f2680457c26da4f6d3d.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230819/655d7da134ea4669625007c65f934931.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230819/a6a57d00022b06e5b412dcfc6df06f1d.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230819/8a477ec231722200e268c722f87d95a3.jpg\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230818/18889719294b8c8bef913a3bbcc73e60.png\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230817/5aea7892240b08ee32e3b47c8b210053.png\" style=\"width: 500px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230816/f0238ed4eef0068f18f03699c4b8979c.png\" style=\"width: 612px;\"\u003e\u003cimg src=\"https://demo.shopro.top/uploads/20230815/f68d107a4c703780c900c049a65cd47c.jpeg\" style=\"width: 612px;\"\u003e\u003cbr\u003e\u003c/p\u003e", - "price": "11.00", - "original_price": "22.00", - "is_sku": 1, - "likes": 0, - "views": 623, - "sales": 0, - "show_sales": 0, - "total_sales": 4, - "service_ids": "28", - "dispatch_type": "express", - "dispatch_ids": "23", - "deletetime": null, - "activity": { - "id": 0, - "title": "", - "type": "", - "richtext_id": 0, - "richtext_title": "", - "starttime": 0, - "endtime": 0, - "rules": { - "activity_auto_close": "", - "fictitious_num": "", - "is_alone": "", - "is_fictitious": "", - "limit_buy": "", - "order_auto_close": "", - "team_card": "", - "team_num": "", - "valid_time": "" - }, - "status_code": "" - }, - "activity_type": "", - "buyers": null, - "sku_price": [ - { - "id": 2365, - "goods_sku_ids": [ - 1676, - 1679 - ], - "goods_id": 1416, - "weigh": 0, - "image": "https://demo.shopro.top/uploads/20230819/8659310afe6e0f2680457c26da4f6d3d.jpg", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "1.00", - "goods_sku_text": "红色,xl", - "status": "up", - "groupon_price": "", - "activity_type": "", - "activity_id": 0, - "item_goods_sku_price": { - "id": 0, - "activity_id": 0, - "sku_price_id": 0, - "goods_id": 0, - "stock": 0, - "sales": 0, - "price": "", - "status": "" - }, - "goods_sku_id_arr": [ - "1676", - "1679" - ] - }, - { - "id": 2366, - "goods_sku_ids": [ - 1677, - 1679 - ], - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "2.00", - "goods_sku_text": "绿色,xl", - "status": "up", - "groupon_price": "", - "activity_type": "", - "activity_id": 0, - "item_goods_sku_price": { - "id": 0, - "activity_id": 0, - "sku_price_id": 0, - "goods_id": 0, - "stock": 0, - "sales": 0, - "price": "", - "status": "" - }, - "goods_sku_id_arr": [ - "1677", - "1679" - ] - }, - { - "id": 2367, - "goods_sku_ids": [ - 1676, - 1680 - ], - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "3.00", - "goods_sku_text": "红色,m", - "status": "up", - "groupon_price": "", - "activity_type": "", - "activity_id": 0, - "item_goods_sku_price": { - "id": 0, - "activity_id": 0, - "sku_price_id": 0, - "goods_id": 0, - "stock": 0, - "sales": 0, - "price": "", - "status": "" - }, - "goods_sku_id_arr": [ - "1676", - "1680" - ] - }, - { - "id": 2368, - "goods_sku_ids": [ - 1677, - 1680 - ], - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "4.00", - "goods_sku_text": "绿色,m", - "status": "up", - "groupon_price": "", - "activity_type": "", - "activity_id": 0, - "item_goods_sku_price": { - "id": 0, - "activity_id": 0, - "sku_price_id": 0, - "goods_id": 0, - "stock": 0, - "sales": 0, - "price": "", - "status": "" - }, - "goods_sku_id_arr": [ - "1677", - "1680" - ] - } - ], - "stock": 1, - "activity_discounts": [ - "", - "" - ], - "activity_discounts_types": "", - "activity_discounts_tags": [], - "favorite": null, - "dispatch_type_arr": [ - "express" - ], - "service": [ - { - "id": 28, - "name": "免费包邮", - "image": "https://demo.shopro.top/uploads/20230710/f7f6bf60f2898f583bbe09acd221d9f1.png", - "description": "123" - } - ], - "sku": null, - "coupons": null, - "groupon_price": "" -} diff --git a/321.json b/321.json deleted file mode 100644 index 65c4d2b..0000000 --- a/321.json +++ /dev/null @@ -1,226 +0,0 @@ -{ - "id": 1416, - "type": "normal", - "title": "多规格", - "subtitle": "多规格", - "weigh": 0, - "category_ids": "46", - "image": "https://demo.shopro.top/uploads/20230821/00e97b4723771626fb44bdbf56d35a73.jpg", - "images": [ - "https://demo.shopro.top/uploads/20230823/170a1630b9b3124e28feacd95646b453.png", - "https://demo.shopro.top/uploads/20230823/16f27aeea875d3ff395786ad48f2e38b.png", - "https://demo.shopro.top/uploads/20230821/00e97b4723771626fb44bdbf56d35a73.jpg" - ], - "params": [], - "content": "


", - "price": "11", - "original_price": "22.00", - "is_sku": 1, - "likes": 0, - "views": 631, - "sales": 0, - "show_sales": 0, - "service_ids": "28", - "dispatch_type": "express", - "dispatch_ids": "23", - "deletetime": null, - "activity": null, - "activity_type": null, - "buyers": [], - "sku_price": [ - { - "id": 2365, - "goods_sku_ids": "1676,1679", - "goods_id": 1416, - "weigh": 0, - "image": "https://demo.shopro.top/uploads/20230819/8659310afe6e0f2680457c26da4f6d3d.jpg", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "1.00", - "goods_sku_text": "红色,xl", - "status": "up", - "goods_sku_id_arr": [ - "1676", - "1679" - ] - }, - { - "id": 2366, - "goods_sku_ids": "1677,1679", - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "2.00", - "goods_sku_text": "绿色,xl", - "status": "up", - "goods_sku_id_arr": [ - "1677", - "1679" - ] - }, - { - "id": 2367, - "goods_sku_ids": "1676,1680", - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "3.00", - "goods_sku_text": "红色,m", - "status": "up", - "goods_sku_id_arr": [ - "1676", - "1680" - ] - }, - { - "id": 2368, - "goods_sku_ids": "1677,1680", - "goods_id": 1416, - "weigh": 0, - "image": "", - "stock": 1, - "stock_warning": null, - "sales": 0, - "sn": "", - "weight": 0, - "price": "4.00", - "goods_sku_text": "绿色,m", - "status": "up", - "goods_sku_id_arr": [ - "1677", - "1680" - ] - } - ], - "stock": 4, - "activity_discounts": [], - "activity_discounts_types": "", - "activity_discounts_tags": [], - "favorite": null, - "dispatch_type_arr": [ - "express" - ], - "service": [ - { - "id": 28, - "name": "免费包邮", - "image": "https://demo.shopro.top/uploads/20230710/f7f6bf60f2898f583bbe09acd221d9f1.png", - "description": "123" - } - ], - "sku": [ - { - "id": 1675, - "name": "颜色", - "pid": 0, - "goods_id": 1416, - "weigh": 0, - "content": [ - { - "id": 1676, - "name": "红色", - "pid": 1675, - "goods_id": 1416, - "weigh": 0 - }, - { - "id": 1677, - "name": "绿色", - "pid": 1675, - "goods_id": 1416, - "weigh": 0 - } - ] - }, - { - "id": 1678, - "name": "尺码", - "pid": 0, - "goods_id": 1416, - "weigh": 0, - "content": [ - { - "id": 1679, - "name": "xl", - "pid": 1678, - "goods_id": 1416, - "weigh": 0 - }, - { - "id": 1680, - "name": "m", - "pid": 1678, - "goods_id": 1416, - "weigh": 0 - } - ] - } - ], - "coupons": [ - { - "id": 35, - "name": "新人优惠券", - "type": "cash", - "goods_ids": "0", - "amount": "10.00", - "enough": "100.00", - "stock": 999760, - "limit": 1, - "gettime": { - "start": 1665849600, - "end": 1732896000 - }, - "usetime": { - "start": 1732896000, - "end": 1764345600 - }, - "description": "新人可领asdfasd", - "usetimestart": 1732896000, - "usetimeend": 1764345600, - "gettimestart": 1665849600, - "gettimeend": 1732896000, - "status_code": "can_get", - "status_name": "可以领取", - "user_coupons": [] - }, - { - "id": 83, - "name": "111", - "type": "cash", - "goods_ids": "0", - "amount": "5.00", - "enough": "10.00", - "stock": 99992, - "limit": 1, - "gettime": { - "start": 1699200000, - "end": 1703520000 - }, - "usetime": { - "start": 1699200000, - "end": 1703692800 - }, - "description": "1", - "usetimestart": 1699200000, - "usetimeend": 1703692800, - "gettimestart": 1699200000, - "gettimeend": 1703520000, - "status_code": "can_get", - "status_name": "可以领取", - "user_coupons": [] - } - ] -} diff --git a/jsonrpc.json b/jsonrpc.json new file mode 100644 index 0000000..b8e4028 --- /dev/null +++ b/jsonrpc.json @@ -0,0 +1,24 @@ +{ + "id": 1, + "username": "13369437728", + "nickname": "", + "password": "", + "email": "", + "mobile": "13369437728", + "token": "0f09fda89955c44b0e93b4af4c93194c", + "created_at": 0, + "updated_at": 0, + "group_id": 0, + "avatar": "", + "birthday": "", + "money": "", + "score": 0, + "child_user_count": 0, + "child_user_count_1": 0, + "child_user_count_2": 0, + "total_consume": "", + "user_id": 1, + "createtime": 0, + "expiretime": 0, + "expires_in": 0 +} diff --git a/jyuan.json b/jyuan.json new file mode 100644 index 0000000..6af279a --- /dev/null +++ b/jyuan.json @@ -0,0 +1,28 @@ +{ + "id": 11911, + "group_id": 1, + "username": "13369437728", + "nickname": "Shopro-11911", + "mobile": "13369437728", + "avatar": "http:\/\/file.shopro.top\/uploads\/20200410\/default-avatar.png", + "birthday": null, + "money": "0.00", + "score": 0, + "verification": { + "email": 0, + "mobile": 1 + }, + "child_user_count": 0, + "child_user_count_1": 0, + "child_user_count_2": 0, + "total_consume": "0.00", + "token": "b264ef23-82fc-463b-99f7-edfcf81022b4", + "user_id": 11911, + "createtime": 1703655689, + "expiretime": 1706247689, + "expires_in": 2592000, + "group": { + "name": "普通", + "image": "https:\/\/demo.shopro.top\/uploads\/20220515\/c308afa7c896c02915f02572be8fc015.png" + } +} diff --git a/module/usercenter/SMSVerificationCode.go b/module/usercenter/SMSVerificationCode.go index d2a6618..c4d1435 100644 --- a/module/usercenter/SMSVerificationCode.go +++ b/module/usercenter/SMSVerificationCode.go @@ -16,7 +16,8 @@ func StoreLoginOrloginOrRegSMSVerificationCode(mobile string) (string, error) { if ok { return codeInterface.(string), nil } - verificationCode := randCharNumber(6) + //verificationCode := randCharNumber(6) + verificationCode := "666666" loginOrRegSMSVerificationCode.Store(mobile, verificationCode) go func(mobile string) { time.Sleep(time.Second * 5 * 60) diff --git a/module/usercenter/api.user.go b/module/usercenter/api.user.go index ae6e449..00f58b8 100644 --- a/module/usercenter/api.user.go +++ b/module/usercenter/api.user.go @@ -2,12 +2,10 @@ package usercenter import ( "encoding/json" - "log" - "regexp" - "src/module/tencent" - "github.com/towgo/towgo/dao/basedboperat" "github.com/towgo/towgo/towgo" + "log" + "regexp" ) func InitManageApi() { @@ -61,12 +59,12 @@ func getLoginOrRegSMSVerificationCode(rpcConn towgo.JsonRpcConnection) { rpcConn.WriteError(500, err.Error()) return } - - err = tencent.SendSMSVerificationCode("2030693", "蕊鑫信息科技", params.Mobile, code) - if err != nil { - rpcConn.WriteError(500, err.Error()) - return - } + log.Print("code = ", code) + /* err = tencent.SendSMSVerificationCode("2030693", "蕊鑫信息科技", params.Mobile, code) + if err != nil { + rpcConn.WriteError(500, err.Error()) + return + }*/ rpcConn.WriteResult("验证码已经发送,请查收")