爵位接口提交-前台-接口修改-购买接口
This commit is contained in:
@@ -30,9 +30,16 @@ class Nobility extends BaseCom
|
||||
|
||||
//爵位购买价格
|
||||
public function get_nobility_price(){
|
||||
$id = input('id');
|
||||
$id = input('id', 0);
|
||||
$uid = $this->uid;
|
||||
$reslut = model('Nobility')->buyNobilityPrice($uid,$id);
|
||||
return V($reslut['code'],$reslut['msg'], $reslut['data']);
|
||||
}
|
||||
//爵位购买
|
||||
public function buy_nobility(){
|
||||
$lid = input('lid', 0);
|
||||
$uid = input('uid', $this->uid);
|
||||
$reslut = model('Nobility')->buyNobility($uid,$lid);
|
||||
return V($reslut['code'],$reslut['msg'], null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ class Nobility extends Model
|
||||
//购买爵位
|
||||
public function buyNobility($user_id,$lid){
|
||||
$nobility_info = db::name('vs_nobility')
|
||||
->field('lid,name,pay_price,pay_coin')
|
||||
->field('lid,name,pay_price,pay_coin,day')
|
||||
->where('delete_time', 0)
|
||||
->where('lid', $lid)
|
||||
->find();
|
||||
|
||||
Reference in New Issue
Block a user