Commit 9b72f226 authored by zhanhuasheng's avatar zhanhuasheng

兼容新版本

parent 5b994021
...@@ -10,7 +10,7 @@ class widgetSettingData(Global): ...@@ -10,7 +10,7 @@ class widgetSettingData(Global):
order_track_day_60 = '60' order_track_day_60 = '60'
order_track_day_30 = '30' order_track_day_30 = '30'
random_avatar = "{\"showType\":2,\"buserIdList\":[${userId}]}" random_avatar = "{\"showType\":2,\"buserIdList\":[${userId}]}"
hide_avatar = "{\"showType\":1,\"buserIdList\":[${userId}]}" hide_avatar = "{\"showType\":1,\"buserIdList\":[]}"
appoint_avatar = "{\"showType\":3,\"buserIdList\":[${userId}]}" appoint_avatar = "{\"showType\":3,\"buserIdList\":[${userId}]}"
origin_greeting_word = 'Hi {first_name} 👋' origin_greeting_word = 'Hi {first_name} 👋'
greeting_word = 'autotest_greeting_word' greeting_word = 'autotest_greeting_word'
......
api1: api1:
title: 更改FAQ页面设置 title: 更改FAQ页面设置
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"7238","itemId":85,"itemValue":"${newFont}","itemName":"centerFontFamily"},{"shopId":"7238","itemId":84,"itemValue":"${newStyle}","itemName":"centerChooseTheme"},{"shopId":"7238","itemId":1,"itemValue":"${newTitle}","itemName":"centerThemeTitle"},{"shopId":"7238","itemId":128,"itemValue":"${newTitleColor}","itemName":"bannerCenterThemeTitleColor"},{"shopId":"7238","itemId":88,"itemValue":"${newActionColor}","itemName":"centerCategoryNavStateColor"},{"shopId":"7238","itemId":132,"itemValue":"${newLogoColor}","itemName":"bannerCategoryIconColor"},{"shopId":"7238","itemId":133,"itemValue":"${newBackgroundColor}","itemName":"bannerPageBackground"},{"shopId":"7238","itemId":134,"itemValue":"${newTypeFontColor}","itemName":"bannerCenterCategoryTextColor"},{"shopId":"7238","itemId":141,"itemValue":"${newDisplayContactUs}","itemName":"displayContactusSwitch"},{"shopId":"7238","itemId":144,"itemValue":"${newFacebookSwitch}","itemName":"facebookMediaCheck"},{"shopId":"7238","itemId":146,"itemValue":"${newInsSwitch}","itemName":"instagramMediaCheck"},{"shopId":"7238","itemId":148,"itemValue":"${newTwitterSwitch}","itemName":"twitterMediaCheck"},{"shopId":"7238","itemId":150,"itemValue":"${newTranslateLanguage}","itemName":"helpcenterLanguage"},{"shopId":"7238","itemId":151,"itemValue":"${newSearchKeyword}","itemName":"searchSupport"},{"shopId":"7238","itemId":152,"itemValue":"${newSpecialArticleKeyword}","itemName":"frequentlyReadarticles"},{"shopId":"7238","itemId":167,"itemValue":"${newTypeKeyword}","itemName":"relatedCategory"},{"shopId":"7238","itemId":173,"itemValue":"${newFankuiKeyword}","itemName":"feedbackDescription"},{"shopId":"7238","itemId":156,"itemValue":"${NewContactUsContentKeyword}","itemName":"contactusDescription"},{"shopId":"7238","itemId":157,"itemValue":"${newChatButtonKeyword}","itemName":"chatButtonText"},{"shopId":"7238","itemId":158,"itemValue":"${newEmailButtonKeyword}","itemName":"emailusButtonText"}],"v":"202404121750"} data: {"brandId":"${brandId}","itemList":[{"shopId":"${shopId}","itemId":85,"itemValue":"${newFont}","itemName":"centerFontFamily"},{"shopId":"${shopId}","itemId":84,"itemValue":"${newStyle}","itemName":"centerChooseTheme"},{"shopId":"${shopId}","itemId":1,"itemValue":"${newTitle}","itemName":"centerThemeTitle"},{"shopId":"${shopId}","itemId":128,"itemValue":"${newTitleColor}","itemName":"bannerCenterThemeTitleColor"},{"shopId":"${shopId}","itemId":88,"itemValue":"${newActionColor}","itemName":"centerCategoryNavStateColor"},{"shopId":"${shopId}","itemId":132,"itemValue":"${newLogoColor}","itemName":"bannerCategoryIconColor"},{"shopId":"${shopId}","itemId":133,"itemValue":"${newBackgroundColor}","itemName":"bannerPageBackground"},{"shopId":"${shopId}","itemId":134,"itemValue":"${newTypeFontColor}","itemName":"bannerCenterCategoryTextColor"},{"shopId":"${shopId}","itemId":141,"itemValue":"${newDisplayContactUs}","itemName":"displayContactusSwitch"},{"shopId":"${shopId}","itemId":144,"itemValue":"${newFacebookSwitch}","itemName":"facebookMediaCheck"},{"shopId":"${shopId}","itemId":146,"itemValue":"${newInsSwitch}","itemName":"instagramMediaCheck"},{"shopId":"${shopId}","itemId":148,"itemValue":"${newTwitterSwitch}","itemName":"twitterMediaCheck"},{"shopId":"${shopId}","itemId":150,"itemValue":"${newTranslateLanguage}","itemName":"helpcenterLanguage"},{"shopId":"${shopId}","itemId":151,"itemValue":"${newSearchKeyword}","itemName":"searchSupport"},{"shopId":"${shopId}","itemId":152,"itemValue":"${newSpecialArticleKeyword}","itemName":"frequentlyReadarticles"},{"shopId":"${shopId}","itemId":167,"itemValue":"${newTypeKeyword}","itemName":"relatedCategory"},{"shopId":"${shopId}","itemId":173,"itemValue":"${newFankuiKeyword}","itemName":"feedbackDescription"},{"shopId":"${shopId}","itemId":156,"itemValue":"${NewContactUsContentKeyword}","itemName":"contactusDescription"},{"shopId":"${shopId}","itemId":157,"itemValue":"${newChatButtonKeyword}","itemName":"chatButtonText"},{"shopId":"${shopId}","itemId":158,"itemValue":"${newEmailButtonKeyword}","itemName":"emailusButtonText"}],"v":"202404121750"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
...@@ -35,9 +35,9 @@ api2: ...@@ -35,9 +35,9 @@ api2:
api3: api3:
title: 还原FAQ页面设置 title: 还原FAQ页面设置
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"7238","itemId":85,"itemValue":"${oldFont}","itemName":"centerFontFamily"},{"shopId":"7238","itemId":84,"itemValue":"${oldStyle}","itemName":"centerChooseTheme"},{"shopId":"7238","itemId":1,"itemValue":"${oldTitle}","itemName":"centerThemeTitle"},{"shopId":"7238","itemId":128,"itemValue":"${oldTitleColor}","itemName":"bannerCenterThemeTitleColor"},{"shopId":"7238","itemId":88,"itemValue":"${oldActionColor}","itemName":"centerCategoryNavStateColor"},{"shopId":"7238","itemId":132,"itemValue":"${oldLogoColor}","itemName":"bannerCategoryIconColor"},{"shopId":"7238","itemId":133,"itemValue":"${oldBackgroundColor}","itemName":"bannerPageBackground"},{"shopId":"7238","itemId":134,"itemValue":"${oldTypeFontColor}","itemName":"bannerCenterCategoryTextColor"},{"shopId":"7238","itemId":141,"itemValue":"${oldDisplayContactUs}","itemName":"displayContactusSwitch"},{"shopId":"7238","itemId":144,"itemValue":"${oldFacebookSwitch}","itemName":"facebookMediaCheck"},{"shopId":"7238","itemId":146,"itemValue":"${oldInsSwitch}","itemName":"instagramMediaCheck"},{"shopId":"7238","itemId":148,"itemValue":"${oldTwitterSwitch}","itemName":"twitterMediaCheck"},{"shopId":"7238","itemId":150,"itemValue":"${oldTranslateLanguage}","itemName":"helpcenterLanguage"},{"shopId":"7238","itemId":151,"itemValue":"${oldSearchKeyword}","itemName":"searchSupport"},{"shopId":"7238","itemId":152,"itemValue":"${oldSpecialArticleKeyword}","itemName":"frequentlyReadarticles"},{"shopId":"7238","itemId":167,"itemValue":"${oldTypeKeyword}","itemName":"relatedCategory"},{"shopId":"7238","itemId":173,"itemValue":"${oldFankuiKeyword}","itemName":"feedbackDescription"},{"shopId":"7238","itemId":156,"itemValue":"${oldContactUsContentKeyword}","itemName":"contactusDescription"},{"shopId":"7238","itemId":157,"itemValue":"${oldChatButtonKeyword}","itemName":"chatButtonText"},{"shopId":"7238","itemId":158,"itemValue":"${oldEmailButtonKeyword}","itemName":"emailusButtonText"}],"v":"202404121750"} data: {"brandId":"${brandId}","itemList":[{"shopId":"${shopId}","itemId":85,"itemValue":"${oldFont}","itemName":"centerFontFamily"},{"shopId":"${shopId}","itemId":84,"itemValue":"${oldStyle}","itemName":"centerChooseTheme"},{"shopId":"${shopId}","itemId":1,"itemValue":"${oldTitle}","itemName":"centerThemeTitle"},{"shopId":"${shopId}","itemId":128,"itemValue":"${oldTitleColor}","itemName":"bannerCenterThemeTitleColor"},{"shopId":"${shopId}","itemId":88,"itemValue":"${oldActionColor}","itemName":"centerCategoryNavStateColor"},{"shopId":"${shopId}","itemId":132,"itemValue":"${oldLogoColor}","itemName":"bannerCategoryIconColor"},{"shopId":"${shopId}","itemId":133,"itemValue":"${oldBackgroundColor}","itemName":"bannerPageBackground"},{"shopId":"${shopId}","itemId":134,"itemValue":"${oldTypeFontColor}","itemName":"bannerCenterCategoryTextColor"},{"shopId":"${shopId}","itemId":141,"itemValue":"${oldDisplayContactUs}","itemName":"displayContactusSwitch"},{"shopId":"${shopId}","itemId":144,"itemValue":"${oldFacebookSwitch}","itemName":"facebookMediaCheck"},{"shopId":"${shopId}","itemId":146,"itemValue":"${oldInsSwitch}","itemName":"instagramMediaCheck"},{"shopId":"${shopId}","itemId":148,"itemValue":"${oldTwitterSwitch}","itemName":"twitterMediaCheck"},{"shopId":"${shopId}","itemId":150,"itemValue":"${oldTranslateLanguage}","itemName":"helpcenterLanguage"},{"shopId":"${shopId}","itemId":151,"itemValue":"${oldSearchKeyword}","itemName":"searchSupport"},{"shopId":"${shopId}","itemId":152,"itemValue":"${oldSpecialArticleKeyword}","itemName":"frequentlyReadarticles"},{"shopId":"${shopId}","itemId":167,"itemValue":"${oldTypeKeyword}","itemName":"relatedCategory"},{"shopId":"${shopId}","itemId":173,"itemValue":"${oldFankuiKeyword}","itemName":"feedbackDescription"},{"shopId":"${shopId}","itemId":156,"itemValue":"${oldContactUsContentKeyword}","itemName":"contactusDescription"},{"shopId":"${shopId}","itemId":157,"itemValue":"${oldChatButtonKeyword}","itemName":"chatButtonText"},{"shopId":"${shopId}","itemId":158,"itemValue":"${oldEmailButtonKeyword}","itemName":"emailusButtonText"}],"v":"202404121750"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
......
api1: api1:
title: 关闭所有消息通知 title: 关闭所有消息通知
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"0","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"0","shopId":"0"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"0","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"0","shopId":"0"}],"v":"${v}"}
expected: expected:
- eq: {"$.code": 0} - eq: {"$.code": 0}
...@@ -17,9 +17,9 @@ api2: ...@@ -17,9 +17,9 @@ api2:
api3: api3:
title: 开启仅针对分配给您的团队的通知 title: 开启仅针对分配给您的团队的通知
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"0","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"1","shopId":"0"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"0","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"1","shopId":"0"}],"v":"${v}"}
expected: expected:
- eq: {"$.code": 0} - eq: {"$.code": 0}
...@@ -34,9 +34,9 @@ api4: ...@@ -34,9 +34,9 @@ api4:
api5: api5:
title: 开启所有消息通知 title: 开启所有消息通知
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"1","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"0","shopId":"0"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"itemId":102,"itemName":"messageNotifyToAll","itemValue":"1","shopId":"0"},{"itemId":103,"itemName":"messageNotifyToTeam","itemValue":"0","shopId":"0"}],"v":"${v}"}
expected: expected:
- eq: {"$.code": 0} - eq: {"$.code": 0}
......
api1: api1:
title: 关闭评分推送 title: 关闭评分推送
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"0","itemId":76,"itemValue":"false","itemName":"askSendReview"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"shopId":"0","itemId":76,"itemValue":"false","itemName":"askSendReview"}],"v":"${v}"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
...@@ -16,9 +16,9 @@ api2: ...@@ -16,9 +16,9 @@ api2:
api3: api3:
title: 开启评分推送 title: 开启评分推送
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"0","itemId":76,"itemValue":"true","itemName":"askSendReview"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"shopId":"0","itemId":76,"itemValue":"true","itemName":"askSendReview"}],"v":"${v}"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
...@@ -33,9 +33,9 @@ api4: ...@@ -33,9 +33,9 @@ api4:
api5: api5:
title: 更新评分推送里的文案、评分样式 title: 更新评分推送里的文案、评分样式
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"${shopId}","itemId":78,"itemValue":"${survey_content}","itemName":"reviewContent"},{"shopId":"${shopId}","itemId":81,"itemValue":"star","itemName":"reviewChoose"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"shopId":"${shopId}","itemId":78,"itemValue":"${survey_content}","itemName":"reviewContent"},{"shopId":"${shopId}","itemId":81,"itemValue":"star","itemName":"reviewChoose"}],"v":"${v}"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
...@@ -51,9 +51,9 @@ api6: ...@@ -51,9 +51,9 @@ api6:
api7: api7:
title: 还原评分推送里的文案、评分样式 title: 还原评分推送里的文案、评分样式
url: /api/v1/setting/updateShopSetting url: /api/v1/setting/local/updateShopSetting
method: post method: post
data: {"item":[{"shopId":"${shopId}","itemId":78,"itemValue":"${origin_survey_content}","itemName":"reviewContent"},{"shopId":"${shopId}","itemId":81,"itemValue":"thumbs","itemName":"reviewChoose"}],"v":"${v}"} data: {"brandId":"${brandId}","itemList":[{"shopId":"${shopId}","itemId":78,"itemValue":"${origin_survey_content}","itemName":"reviewContent"},{"shopId":"${shopId}","itemId":81,"itemValue":"thumbs","itemName":"reviewChoose"}],"v":"${v}"}
expected: expected:
- eq: {"$.code" : 0} - eq: {"$.code" : 0}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment