rabin hace 3 años
padre
commit
13039f19f5
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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;
     }