|
@@ -94,10 +94,15 @@ class SingleController extends Controller
|
94
|
94
|
alert_back('链接类型不允许推送!');
|
95
|
95
|
}
|
96
|
96
|
if ($data->filename) {
|
97
|
|
- $urls[] = $domain . homeurl('/home/Index/' . $data->filename, $url_rule_sort_suffix);
|
|
97
|
+ $url = $domain . homeurl('/home/Index/' . $data->filename, $url_rule_sort_suffix);
|
|
98
|
+ $url = str_replace(".html","",$url);
|
|
99
|
+ $urls[] = $url;
|
98
|
100
|
} else {
|
99
|
|
- $urls[] = $domain . homeurl('/home/Index/' . $data->urlname . $url_break_char . $data->scode, $url_rule_sort_suffix);
|
|
101
|
+ $url = $domain . homeurl('/home/Index/' . $data->urlname . $url_break_char . $data->scode, $url_rule_sort_suffix);
|
|
102
|
+ $url = str_replace(".html","",$url);
|
|
103
|
+ $urls[] = $url;
|
100
|
104
|
}
|
|
105
|
+
|
101
|
106
|
$result = post_baidu($api, $urls);
|
102
|
107
|
if (isset($result->error)) {
|
103
|
108
|
$this->log('百度普通收录推送失败:' . $urls[0]);
|