fix-SAR-weather
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5123,6 +5123,14 @@ function add_weather(user_title, user_topic, user_content, user_style, title_sty
|
|||||||
if (resJSON.status == 0) {
|
if (resJSON.status == 0) {
|
||||||
sendIcon.removeAttr('disabled')
|
sendIcon.removeAttr('disabled')
|
||||||
weatherDiv.css('background-color', '#1cc88a')
|
weatherDiv.css('background-color', '#1cc88a')
|
||||||
|
if(resJSON.result.location.name == "香港特别行政区香港特别行政区")
|
||||||
|
{
|
||||||
|
resJSON.result.location.name = "香港特别行政区"
|
||||||
|
}
|
||||||
|
if(resJSON.result.location.name == "澳门特别行政区澳门特别行政区")
|
||||||
|
{
|
||||||
|
resJSON.result.location.name = "澳门特别行政区"
|
||||||
|
}
|
||||||
dscname.html(resJSON.result.location.name)
|
dscname.html(resJSON.result.location.name)
|
||||||
district = resJSON.result.location.name
|
district = resJSON.result.location.name
|
||||||
tmmper.html(resJSON.result.now.temp + "℃ " + resJSON.result.now.text + " " + resJSON.result.now.rh + "%RH")
|
tmmper.html(resJSON.result.now.temp + "℃ " + resJSON.result.now.text + " " + resJSON.result.now.rh + "%RH")
|
||||||
|
|||||||
Reference in New Issue
Block a user