Explorar o código

免费续期方案调整

shish %!s(int64=5) %!d(string=hai) anos
pai
achega
b3c3033b4c
Modificáronse 2 ficheiros con 2 adicións e 11 borrados
  1. 2 2
      app-hd/controllers/ConsoleController.php
  2. 0 9
      biz/sj/classes/SjClass.php

+ 2 - 2
app-hd/controllers/ConsoleController.php

@@ -32,10 +32,10 @@ class ConsoleController extends BaseController
             //是否有充值免费续期权限
             $hasRight = SjClass::hasRechargeRenewRight($sj, $this->sjExtend);
             if ($hasRight) {
-                $title = '您的试用期已到,点击免费续期1年';
+                $title = '您的试用期已到,点此免费续期';
                 if ($remain > 0) {
                     $num = ceil($remain / 86400);
-                    $title = "您的试用期还有{$num}天,点免费续期";
+                    $title = "您的试用期还有{$num}天,点免费续期";
                 }
                 $notice = array_merge($notice, [['title' => $title, 'action' => '查看', 'page' => '/admin/recharge/renew']]);
             } else {

+ 0 - 9
biz/sj/classes/SjClass.php

@@ -72,15 +72,6 @@ class SjClass extends BaseClass
         if ($rechargeRenew == 2) {
             return false;
         }
-        //是否有介绍人
-        $parentId = $sj['parentId'] ?? 0;
-        if (empty($parentId)) {
-            return false;
-        }
-        $current = self::getById($parentId);
-        if (isset($current['style']) == false || $current['style'] != self::STYLE_SUPPLIER) {
-            return false;
-        }
         return true;
     }