正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -74,7 +74,7 @@ class User extends Backend | @@ -74,7 +74,7 @@ class User extends Backend | ||
74 | if ($result !== false) { | 74 | if ($result !== false) { |
75 | if($product_id){ | 75 | if($product_id){ |
76 | $product = new \app\admin\model\Product(); | 76 | $product = new \app\admin\model\Product(); |
77 | - $product = $product->where(['id'=>$params['product_id']])->find(); | 77 | + $product = $product->where(['id'=>$product_id])->find(); |
78 | if(!empty($product)){ | 78 | if(!empty($product)){ |
79 | $product = $product->toArray(); | 79 | $product = $product->toArray(); |
80 | 80 | ||
@@ -82,7 +82,7 @@ class User extends Backend | @@ -82,7 +82,7 @@ class User extends Backend | ||
82 | $order_id = str_replace("-","",$order_id); | 82 | $order_id = str_replace("-","",$order_id); |
83 | 83 | ||
84 | $now = date('Y-m-d H:i:s'); | 84 | $now = date('Y-m-d H:i:s'); |
85 | - $data['product_id'] = $params['product_id']; | 85 | + $data['product_id'] = $product_id; |
86 | $data['user_id'] = $result; | 86 | $data['user_id'] = $result; |
87 | $data['order_id'] = $order_id; | 87 | $data['order_id'] = $order_id; |
88 | $data['status'] = 'success'; | 88 | $data['status'] = 'success'; |
-
请 注册 或 登录 后发表评论