dyjh há 6 anos atrás
pai
commit
51b0b6f954
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -2643,7 +2643,7 @@ class AlbumController extends Controller
         $user_agent->is_show_ma_price = $data['is_show_ma_price'];
         $user_agent->save();
         if ($data['point'] != 0) {
-            $product = AlbumProductModel::where('store_id',$data['store_id'])->get('id','price_default');
+            $product = AlbumProductModel::where('store_id',$data['store_id'])->get(['id','price_default']);
             foreach ($product as $key=>$val) {
                 $save['price'] = $val['price_default'] * $data['point']/100;
                 $check = AlbumProductPriceModel::where([['agent_id',$user_agent->id],['store_id',$data['store_id']],['product_id',$val['id']]])->first();