作者 xwp
1 个管道 的构建 通过 耗费 0 秒

后台修改

... ... @@ -74,7 +74,7 @@ class User extends Backend
if ($result !== false) {
if($product_id){
$product = new \app\admin\model\Product();
$product = $product->where(['id'=>$params['product_id']])->find();
$product = $product->where(['id'=>$product_id])->find();
if(!empty($product)){
$product = $product->toArray();
... ... @@ -82,7 +82,7 @@ class User extends Backend
$order_id = str_replace("-","",$order_id);
$now = date('Y-m-d H:i:s');
$data['product_id'] = $params['product_id'];
$data['product_id'] = $product_id;
$data['user_id'] = $result;
$data['order_id'] = $order_id;
$data['status'] = 'success';
... ...