Browse Source

调整代发价

牟新芬 3 years ago
parent
commit
b1794ecbc3
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/api/controller/v1/Index.php
  2. 1 1
      app/api/controller/v1/Order.php

+ 2 - 2
app/api/controller/v1/Index.php

@@ -53,7 +53,7 @@ class Index extends BaseController
         $data = Product::getProductList($where);
         foreach ($data['list'] as $k => $v) {
             if($v['price'] == 0) {
-                $data['list'][$k]['price'] = round($v['ot_price'] * 1.15, 2);
+                $data['list'][$k]['price'] = round($v['ot_price'] * 1.05, 2);
             }
             $data['list'][$k]['market_price'] = round($data['list'][$k]['price'] * 1.2, 2);
             $score = Db::name("product_score")->where('product_id', $v['id'])->find();
@@ -102,7 +102,7 @@ class Index extends BaseController
             return isset($imagsSrc[1]) && isset($imagsSrc[0]) ? str_replace($imagsSrc[1], str_replace('\\', '/', $imagsSrc[1]), $imagsSrc[0]) : '';
         }, $storeInfo['description']);
         if($storeInfo['price'] == 0){
-            $storeInfo['price'] = round($storeInfo['ot_price'] * 1.15, 2);
+            $storeInfo['price'] = round($storeInfo['ot_price'] * 1.05, 2);
         }
         $storeInfo['market_price'] = round($storeInfo['price'] * 1.2, 2);
         $score = Db::name("product_score")->where('product_id', $id)->find();

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

@@ -32,7 +32,7 @@ class Order extends BaseController
         ], $request);
         $data = Db::name('ProductAttrValue')->where('product_id', $where['product_id'])->where('unique', $where['unique'])->find();
         if($data['price'] == '0.00'){
-            $data['price'] = round($data['ot_price'] * 1.15, 2);
+            $data['price'] = round($data['ot_price'] * 1.05, 2);
         }
         $data['store_name'] = Db::name('Product')->where('id', $where['product_id'])->value('store_name');
         return app('json')->success($data);