正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -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'], |
-
请 注册 或 登录 后发表评论