shish 2 anni fa
parent
commit
0515fa3ea8

+ 8 - 7
app-pt/controllers/RenewController.php

@@ -2,18 +2,19 @@
 
 namespace pt\controllers;
 
-use bizHd\saas\services\RenewService;
+
+use biz\renew\classes\RenewClass;
 use common\components\util;
 use Yii;
 
 class RenewController extends BaseController
 {
 
-	public function actionList()
-	{
-		$where = [];
-		$list = RenewService::getRenewList($where);
-		util::success($list);
-	}
+    public function actionList()
+    {
+        $where = [];
+        $list = RenewClass::getRenewList($where);
+        util::success($list);
+    }
 
 }

+ 6 - 0
biz/renew/classes/RenewClass.php

@@ -14,6 +14,12 @@ class RenewClass extends BaseClass
 
     public static $baseFile = '\biz\renew\models\Renew';
 
+    public static function getRenewList($where)
+    {
+        $data = self::getList('*', $where);
+        return $data;
+    }
+
     public static function thirdPay($payWay, $orderSn, $totalFee, $attach)
     {
         $renew = self::getByCondition(['orderSn' => $orderSn], true);