wugg 2 vuotta sitten
vanhempi
commit
6d5793fa75
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/admin/controller/Consult.php

+ 1 - 1
app/admin/controller/Consult.php

@@ -1414,7 +1414,7 @@ class Consult extends Base
                            if($bids['is_gold_price']==1){
                                $catinfo = Db::name("cat")->where(["id"=>$bids['cat_id']])->find();
                                $budget = isset($catinfo['order_rate']) ? $catinfo['order_rate']/100:0;
-                               $gold = Db::name("gold_price1")->where(["type"=>$info['metal_id'],"is_del"=>0,"status"=>1])->order("addtime desc")
+                               $gold = Db::name("gold_price1")->where(["type"=>$bids['metal_id'],"is_del"=>0,"status"=>1])->order("addtime desc")
                                    ->find();
                                $bids['sale_price']= ($bids['open_fee'] / $coninfo['num'] + $bids['weight'] * $gold["price"] + $info['cost_after_price'] *$bids['weight']  +
                                        $bids['pakge_fee'] + $bids['mark_fee'] +$bids['cert_fee'] +$bids['nake_fee']) /(1 - $budget);