|
|
@@ -1624,7 +1624,10 @@ func (r *THJUserLevelInfo) Get() (err error) {
|
|
|
r.LEVELGROUP = t.GROUPNAME
|
|
|
r.NEXTLEVELGROUPID = t.GROUPNAME2
|
|
|
r.AppUp = int(t.BUYTOTALQTY) + int(t.BUYTOTALQTY2) + int(t.BUYTOTALQTY3)
|
|
|
- r.NotYet = int(t.UPBUYQTY) - r.AppUp
|
|
|
+ if t.UPBUYQTY > 0 {
|
|
|
+ r.NotYet = int(t.UPBUYQTY) - r.AppUp
|
|
|
+ }
|
|
|
+
|
|
|
r.Progress = float64(r.AppUp) / float64(t.UPBUYQTY)
|
|
|
|
|
|
dates := make([]string, 0)
|