瀏覽代碼

会员升级

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

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

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