Kaynağa Gözat

会员升级

Kirin 1 yıl önce
ebeveyn
işleme
80079a8504
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  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);
     }