Kaynağa Gözat

cent many table manage func

abiao 5 yıl önce
ebeveyn
işleme
6c0971fd3f

+ 1 - 1
go/gopath/src/fohow.com/apps/models/economic_model/cent_economic.go

@@ -52,7 +52,7 @@ type CentEconomic struct {
 
 func (self *CentEconomic) GetTable(WxUserId int64) string {
 	split := WxUserId % 10 // TODO: 这里先粗暴的分 10 张表
-	return fmt.Sprintf("cent%d_balance", split)
+	return fmt.Sprintf("cent%d_balances", split)
 }
 
 func (self *CentEconomic) Create(wxUId, c int64, s, rId, remark string, o orm.Ormer) (item *CentEconomic) {