rabin 2 years ago
parent
commit
a4f95da1a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/shop/lib/Info.php

+ 1 - 1
app/shop/lib/Info.php

@@ -377,7 +377,7 @@ class Info
             }
 
             # 根据角色计算折扣
-            $data['discount'] = array();
+            $data['discount'] = (object) array();
             if ($uid && $uid > 0) {
                 $role = $this->getRole($uid);
                 if ($role) {