sunhao 4 years ago
parent
commit
92170b2d5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/TemplateController.php

+ 1 - 1
app/Http/Controllers/Api/TemplateController.php

@@ -199,7 +199,7 @@ class TemplateController extends Controller {
199 199
         $template->note = $note;
200 200
         $template->is_html = 1;
201 201
         $template->article_html = $article_html;
202
-        $template->url = 'http://seafood.weyitao.com/seafood/articleTemplat/template1.html';
202
+        $template->url = 'http://'.$_SERVER['HTTP_HOST'].'/seafood/articleTemplat/template1.html';
203 203
         $res = $template->save();
204 204
         return self::returnValue($res);
205 205
     }