|
@@ -1,6 +1,7 @@
|
|
package aliyun
|
|
package aliyun
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "fmt"
|
|
cams20200606 "github.com/alibabacloud-go/cams-20200606/v2/client"
|
|
cams20200606 "github.com/alibabacloud-go/cams-20200606/v2/client"
|
|
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
|
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
|
|
"github.com/alibabacloud-go/tea/tea"
|
|
"github.com/alibabacloud-go/tea/tea"
|
|
@@ -276,17 +277,41 @@ func SetCamsBusiness(phone, custSpaceId, address, description, vertical, email,
|
|
}
|
|
}
|
|
|
|
|
|
request := &cams20200606.ModifyPhoneBusinessProfileRequest{
|
|
request := &cams20200606.ModifyPhoneBusinessProfileRequest{
|
|
- PhoneNumber: tea.String(phone),
|
|
|
|
- CustSpaceId: tea.String(custSpaceId),
|
|
|
|
- Address: tea.String(address),
|
|
|
|
- Description: tea.String(description),
|
|
|
|
- Vertical: tea.String(vertical),
|
|
|
|
- Email: tea.String(email),
|
|
|
|
- ProfilePictureUrl: tea.String(profilePicUrl),
|
|
|
|
- About: tea.String(about),
|
|
|
|
- Websites: websites,
|
|
|
|
|
|
+ PhoneNumber: tea.String(phone),
|
|
|
|
+ CustSpaceId: tea.String(custSpaceId),
|
|
|
|
+ Vertical: tea.String(vertical),
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if vertical != "" && vertical != "UNDEFINED" {
|
|
|
|
+ request.Vertical = tea.String(vertical)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if address != "" {
|
|
|
|
+ request.Address = tea.String(address)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if description != "" {
|
|
|
|
+ request.Description = tea.String(description)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if profilePicUrl != "" {
|
|
|
|
+ request.ProfilePictureUrl = tea.String(profilePicUrl)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if email != "" {
|
|
|
|
+ request.Email = tea.String(email)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if about != "" {
|
|
|
|
+ request.About = tea.String(about)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if len(websites) > 0 {
|
|
|
|
+ request.Websites = websites
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fmt.Printf("request=%v\n", request)
|
|
|
|
+
|
|
response, _err := client.ModifyPhoneBusinessProfile(request)
|
|
response, _err := client.ModifyPhoneBusinessProfile(request)
|
|
if _err != nil {
|
|
if _err != nil {
|
|
return nil, _err
|
|
return nil, _err
|