dever 6 years ago
parent
commit
f87455f926
2 changed files with 2 additions and 2 deletions
  1. 1 1
      main/src/Journal.php
  2. 1 1
      main/src/Vip.php

+ 1 - 1
main/src/Journal.php

@@ -7,7 +7,7 @@ use Main\Lib\Core;
 
 class Journal extends Core
 {
-    private function getCate()
+    public function getCate()
     {
         $id = Dever::input('system', 1);
 

+ 1 - 1
main/src/Vip.php

@@ -35,7 +35,7 @@ class Vip extends Core
         $buy_id = Dever::input('buy_id');
         $mobile = Dever::input('mobile');
         $type = Dever::input('type');
-        $cate = $this->getCate();
+        $cate = Dever::load('main/journal')->getCate();
 
         if (!$buy_id) {
             Dever::alert('请传入正确的支付ID');