|
@@ -1,21 +1,22 @@
|
|
package push
|
|
package push
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "bytes"
|
|
|
|
+ . "cmplatform/util"
|
|
|
|
+ "encoding/json"
|
|
|
|
+ "fmt"
|
|
|
|
+ "net/url"
|
|
|
|
+ "strings"
|
|
|
|
+ "time"
|
|
|
|
+
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
"app.yhyue.com/moapp/jybase/log"
|
|
"app.yhyue.com/moapp/jybase/log"
|
|
"app.yhyue.com/moapp/jybase/mongodb"
|
|
"app.yhyue.com/moapp/jybase/mongodb"
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
- "bytes"
|
|
|
|
- . "cmplatform/util"
|
|
|
|
- "encoding/json"
|
|
|
|
- "fmt"
|
|
|
|
"github.com/tealeg/xlsx"
|
|
"github.com/tealeg/xlsx"
|
|
"go.uber.org/zap"
|
|
"go.uber.org/zap"
|
|
- "net/url"
|
|
|
|
- "strings"
|
|
|
|
- "time"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
type Push struct {
|
|
type Push struct {
|
|
@@ -372,10 +373,10 @@ func postTT(dataSource string, data map[string]interface{}) string {
|
|
apiurl := "https://zlbss-crm.chinatowercom.cn/erp/syncdata/open/objdata/push"
|
|
apiurl := "https://zlbss-crm.chinatowercom.cn/erp/syncdata/open/objdata/push"
|
|
log.Debug("apiurl:" + apiurl)
|
|
log.Debug("apiurl:" + apiurl)
|
|
header := map[string]string{
|
|
header := map[string]string{
|
|
- "token": "43f8e3c05a8edf8ee85bbc8755043b01",
|
|
|
|
- "tenantId": "40070007",
|
|
|
|
|
|
+ "token": "6452fdd0973b9eca4d2e873858c323c5",
|
|
|
|
+ "tenantId": "40070002",
|
|
"objectApiName": "object_HDngT__c",
|
|
"objectApiName": "object_HDngT__c",
|
|
- "dataCenterId": "649d4eb19ced6c0001587f26",
|
|
|
|
|
|
+ "dataCenterId": "6455ef2722bcd30001bccbe1",
|
|
"id": common.ObjToString(data["infoId"]),
|
|
"id": common.ObjToString(data["infoId"]),
|
|
"version": "v1",
|
|
"version": "v1",
|
|
"Content-Type": "application/json",
|
|
"Content-Type": "application/json",
|