lining пре 6 година
родитељ
комит
28fa917eb4

+ 5 - 2
src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

@@ -2,6 +2,7 @@ package oilrtx
 
 import (
 	"encoding/json"
+	"fmt"
 	"io/ioutil"
 	"log"
 	"net/http"
@@ -162,10 +163,12 @@ func (s *RtxService) HandleSendMsg(username string, tomobile string, message str
 
 	json, err := json.Marshal(msg)
 	params := string(json)
-
+    fmt.Sprintf(params, "短信=====")
+	params1 := "{\"UserName\":\"" + msg.UserName + "\",\"ToMobile\":\"" + msg.ToMobile + "\",\"MSG\":\"" + msg.Msg  +"\"}"
+	fmt.Println(params1)
 	req, err := http.NewRequest("post", "http://api.uidp.dgyt.petrochina/SMS/API/sendSMS", strings.NewReader(params))
 	req.Header.Add("Content-Type", "application/json")
-	req.Header.Add("X-Token", "rzkTZhCbQKLFUOJI5L7VEqjsUWF+PoaewKQbvJHYo2Nimtn+fEWBne7G7JbWF3fpdJnAUN3e1pQ=")
+	req.Header.Add("X-Token", "/LT6VRmkY8mpGHJzWMKxzMQhjbkXwAHsk0zJkRfAPtjC0Wsecn1539xiULbJU32D59Kh0jTuUD0=")
 
 	resp, err := client.Do(req)
 	if err != nil {

+ 2 - 2
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertappendsub.go

@@ -202,7 +202,7 @@ func (this *OilSupplierCertAppendSubController) AddAppendSub() {
 			entity.CreateBy = this.User.Realname
 			entity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
 			entity.SupType = 2
-
+			entity.SupplierCertSubId = model.SupplierCertAppendId
 			isRepeat := false
 			for j := 0; j < len(list); j++ {
 				if list[j].NeedFileType == needList[i].FileName{
@@ -430,7 +430,7 @@ func (this *OilSupplierCertAppendSubController) AddGoodsBus() {
 				entity.CreateBy = this.User.Realname
 				entity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
 				entity.SupType = 2
-
+				entity.SupplierCertSubId = datamain.SupplierCertAppendId
 				isRepeat := false
 				for j := 0; j < len(list); j++ {
 					if list[j].NeedFileType == needList[i].FileName{

+ 11 - 0
src/dashoo.cn/backend/api/controllers/register/oilcorporateinfo.go

@@ -485,6 +485,17 @@ func (this *OilCorporateInfoController) ComAudit() {
 	}
 }
 
+func byteString(p []byte) string {
+	for i := 0; i < len(p); i++ {
+		if p[i] == 0 {
+			return string(p[0:i])
+
+		}
+
+	}
+	return string(p)
+}
+
 // @Title 添加新用户
 // @Description 添加新用户信息
 // @Success	200	{object} controllers.Request

+ 1 - 1
src/dashoo.cn/frontend_web/nuxt.config.js

@@ -187,7 +187,7 @@ module.exports = {
     upfilehost: '/uploadfile',                     //附件上传
     baseURL:    '/api/',                           //本地工作流图片
     LOCAL_IP:   '10.76.248.23'                     //定义服务器内网IP,word转PDF时用到
-    API_URL:    'http://10.76.248.23:10091/api/'   //服务器渲染时调用
+    // API_URL:    'http://10.76.248.23:10091/api/'   //服务器渲染时调用
     */
     /* --------Nuxt Start发版用 END-------------- */
   },