rabin 3 年之前
父節點
當前提交
13039f19f5
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      service/agent/src/Auth.php

+ 5 - 1
service/agent/src/Auth.php

@@ -164,7 +164,11 @@ class Auth
     # 根据角色获取打款金额
     public function getPrice()
     {
-        $this->data = Dever::load('agent/lib/order')->getPrice();
+        $uid = Dever::load('passport/user')->check(false);
+        if (!$uid || ($uid && $uid <= 0)) {
+            $uid = false;
+        }
+        $this->data = Dever::load('agent/lib/order')->getPrice($uid);
 
         return $this->data;
     }