huangjiajun vor 1 Woche
Ursprung
Commit
15c3428802
3 geänderte Dateien mit 17 neuen und 7 gelöschten Zeilen
  1. +2
    -1
      app/store/svc/svc_index.go
  2. +14
    -5
      app/store/svc/svc_task.go
  3. +1
    -1
      go.mod

+ 2
- 1
app/store/svc/svc_index.go Datei anzeigen

@@ -12,7 +12,8 @@ import (
func UserInfo(c *gin.Context) {
store := svc.GetCampStore(c)
res := map[string]string{
"phone": store.Phone,
"phone": store.Phone,
"is_show_project": utils.IntToStr(store.IsShowProject),
}
e.OutSuc(c, res, nil)
return


+ 14
- 5
app/store/svc/svc_task.go Datei anzeigen

@@ -12,6 +12,7 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"strings"
"time"
)

@@ -154,13 +155,21 @@ func TaskBase(c *gin.Context) {
}
taskAllCate[k]["list"] = listTmp
}
storeId := svc.GetCampStoreId(c)
var store models.CampTaskStoreUser
svc.MasterDb(c).Where("id=?", storeId).Get(&store)
settleType := []map[string]string{
{"name": "T+1", "value": "0"},
}
if strings.Contains(store.TaskType, "1") {
settleType = append(settleType, map[string]string{"name": "T+7", "value": "1"})
}
if strings.Contains(store.TaskType, "2") {
settleType = append(settleType, map[string]string{"name": "T+30", "value": "2"})
}
res := map[string]interface{}{
"all_cate_list": taskAllCate,
"settle_type": []map[string]string{
{"name": "T+1", "value": "0"},
{"name": "T+7", "value": "1"},
{"name": "T+30", "value": "2"},
},
"settle_type": settleType,
"audit_type": []map[string]string{
{"name": "待审核", "value": "0"},
{"name": "审核通过", "value": "1"},


+ 1
- 1
go.mod Datei anzeigen

@@ -47,7 +47,7 @@ require (

require (
code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20250801053019-55ac588e769e
code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20250912074810-4b419010bd06
code.fnuoos.com/go_rely_warehouse/zyos_model.git v0.0.4-0.20250920015409-ec13db17f020
)

require (


Laden…
Abbrechen
Speichern