xxxrrrdddd 3 years ago
parent
commit
5e4bfad56b
1 changed files with 9 additions and 2 deletions
  1. 9 2
      application/index/controller/Index.php

+ 9 - 2
application/index/controller/Index.php

@@ -18,7 +18,14 @@ class Index extends Frontend
     {
         return $this->view->fetch();
     }
-    public function payment($a){
-        return file_get_contents(RUNTIME_PATH.'/payment/'.$a);
+    public function payment($a=null){
+        if(!$a){
+            return '';
+        }
+        $file=RUNTIME_PATH.'/payment/'.$a;
+        if(!file_exists($file)){
+            return '';
+        }
+        return file_get_contents($file);
     }
 }