作者 王智

daima

@@ -104,7 +104,8 @@ class Vip extends Api @@ -104,7 +104,8 @@ class Vip extends Api
104 $param = $this->request->param(); 104 $param = $this->request->param();
105 $openid = Db::name('user')->where('id', $user_id)->value('openid'); 105 $openid = Db::name('user')->where('id', $user_id)->value('openid');
106 $domain = $this->request->domain(); 106 $domain = $this->request->domain();
107 - $price = Db::name('order')->where('order_sn', $param['order_sn'])->value('vip_id'); 107 + $price_id = Db::name('order')->where('order_sn', $param['order_sn'])->value('vip_id');
  108 + $price = Db::name('vip')->where('id', $price_id)->value('price');
108 $data = [ 109 $data = [
109 'amount' => $price, 110 'amount' => $price,
110 'orderid' => $param['order_sn'], 111 'orderid' => $param['order_sn'],