瀏覽代碼

会员升级

Kirin 1 年之前
父節點
當前提交
b61a13feaa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/api/v1/PublicController.php

+ 1 - 1
app/controller/api/v1/PublicController.php

@@ -70,7 +70,7 @@ class PublicController extends BaseController
             ->where('is_system_del', 0)
             ->where('is_system_del', 0)
             ->where('refund_status', 0)
             ->where('refund_status', 0)
             ->whereIn('status', [2, 3])
             ->whereIn('status', [2, 3])
-            ->sum('(total_price-cost)');
+            ->field('sum(total_price-cost) as total_price_sum')->find();
         var_dump($order_price);
         var_dump($order_price);
     }
     }