afa 7 miesięcy temu
rodzic
commit
61096eb31c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      application/api/controller/Synthesis.php

+ 2 - 2
application/api/controller/Synthesis.php

@@ -54,10 +54,10 @@ class Synthesis extends Api
             $synthesis->material_one = $productOrder->getByOrderProductNum($material_one, $synthesis->material_one_num, $this->auth->id);
             //条件二
             $material_two = $productLists->getBySynthesisProduct($synthesis->material_two, $lan);
-            $synthesis->material_two = $productOrder->getByOrderProductNum($material_two, $synthesis->material_one_num, $this->auth->id);
+            $synthesis->material_two = $productOrder->getByOrderProductNum($material_two, $synthesis->material_two_num, $this->auth->id);
             //条件三
             $material_three = $productLists->getBySynthesisProduct($synthesis->material_three, $lan);
-            $synthesis->material_three = $productOrder->getByOrderProductNum($material_three, $synthesis->material_one_num, $this->auth->id);
+            $synthesis->material_three = $productOrder->getByOrderProductNum($material_three, $synthesis->material_three_num, $this->auth->id);
         }
         $this->success('', $synthesis);
     }