Browse Source

工差单bug优化

wufeng 2 years ago
parent
commit
f2383b982d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app/admin/controller/Purch.php

+ 5 - 5
app/admin/controller/Purch.php

@@ -474,12 +474,12 @@ class Purch extends Base
                     }
                     foreach ($orderCode as $value){
                         $data=[
-                            "orderCode"=>$value['orderCode'],
-                            "good_code"=>$value['spuCode'],
-                            "good_name"=>$value['good_name'],
+                            "orderCode"=>$value,
+                            "good_code"=>$cg['spuCode'],
+                            "good_name"=>$cg['good_name'],
                             "diff_weight"=>$diff_weight,
-                            "diff_price"=>$diff_weight*$value['good_price'],
-                            "gold_price"=>$value['good_price'],
+                            "diff_price"=>$diff_weight*$cg['good_price'],
+                            "gold_price"=>$cg['good_price'],
                             "status"=>1,
                             "addtime"=>date("Y-m-d H:i:s"),
                             "updatetime"=>date("Y-m-d H:i:s")