|
|
@@ -462,11 +462,11 @@ func (this *OilCorporateInfoController) ComAudit() {
|
|
|
//修改主表数据的邮箱和手机号,如果能找到的话
|
|
|
supSvc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
var supplier supplier.OilSupplier
|
|
|
- supSvc.GetEntityByWhere(OilSupplierName, "CommercialNo = '" + model.CommercialNo + "'", &supplier)
|
|
|
+ supSvc.GetEntityByWhere(OilSupplierName, "CommercialNo = '"+model.CommercialNo+"'", &supplier)
|
|
|
if supplier.Id > 0 {
|
|
|
cols := []string{"EMail", "Mobile"}
|
|
|
model.Mobile = model.UserTelephone
|
|
|
- supSvc.UpdateEntityBywheretbl(OilSupplierName, &model, cols, "Id = " + strconv.Itoa(supplier.Id))
|
|
|
+ supSvc.UpdateEntityBywheretbl(OilSupplierName, &model, cols, "Id = "+strconv.Itoa(supplier.Id))
|
|
|
}
|
|
|
|
|
|
//编辑短信内容
|
|
|
@@ -820,6 +820,7 @@ func (this *OilCorporateInfoController) GetCode() {
|
|
|
// 企业名称暂时以注册表为准
|
|
|
errorMsg := msgService.HandleMsg(mobile, msg, "2-1", userName, registerEntity.SupplierName, strconv.Itoa(registerEntity.UserId), this.User.Username)
|
|
|
if errorMsg == nil {
|
|
|
+ log.Println(mobile, msg)
|
|
|
errinfo.Message = "请等待接收验证码,5分钟内有效"
|
|
|
errinfo.Code = 0
|
|
|
this.Data["json"] = &errinfo
|