|
|
@@ -13,6 +13,7 @@ import (
|
|
|
"rocommon/util"
|
|
|
"roserver/baseserver/model"
|
|
|
dbmodel "roserver/db/model"
|
|
|
+ selfmodel "roserver/game/model"
|
|
|
gmweb "roserver/gmweb/model"
|
|
|
"roserver/serverproto"
|
|
|
"strconv"
|
|
|
@@ -360,7 +361,8 @@ func WebGmProcessCreateOrder(c *gin.Context) {
|
|
|
orderIdStr := c.DefaultQuery("order_id", "") ///default ""
|
|
|
productIdStr := c.DefaultQuery("productId", "") ///default ""
|
|
|
countStr := c.DefaultQuery("count", "") ///default ""
|
|
|
- uid, _ := model.Str2NumU64(uidStr)
|
|
|
+ //uid, _ := model.Str2NumU64(uidStr)
|
|
|
+ cpOrderId := model.GenerateUidByZone(service.GetServiceConfig().Node.Zone)
|
|
|
productId, _ := strconv.Atoi(productIdStr)
|
|
|
count, _ := strconv.Atoi(countStr)
|
|
|
if uidStr == "" || orderIdStr == "" || productIdStr == "" {
|
|
|
@@ -371,13 +373,18 @@ func WebGmProcessCreateOrder(c *gin.Context) {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- ss := serverproto.SSPayOrderCreateReq{
|
|
|
+ ss := &serverproto.SSPayOrderCreateReq{
|
|
|
OrderId: orderIdStr,
|
|
|
GoodsId: int32(productId),
|
|
|
Count: int32(count),
|
|
|
Uid: uidStr,
|
|
|
}
|
|
|
- c.JSON(http.StatusOK, CheckUser{CharacterName: bfInfo.NickName, Server: strconv.Itoa(bfInfo.Serverid / 2), CallBackKey: callBackKey})
|
|
|
+
|
|
|
+ selfmodel.SendSocial(ss)
|
|
|
+ c.JSON(http.StatusOK, gin.H{
|
|
|
+ "status": "success",
|
|
|
+ "order_code": "string",
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
type UserList struct {
|