巡乐会抽奖接口提交.-联调- bug修改-工会改成公会
This commit is contained in:
@@ -108,7 +108,7 @@ return [
|
|||||||
'该装扮天数不存在' => '该装扮天数不存在',
|
'该装扮天数不存在' => '该装扮天数不存在',
|
||||||
'该个人靓号已被购买' => '该个人靓号已被购买',
|
'该个人靓号已被购买' => '该个人靓号已被购买',
|
||||||
'该房间靓号已被购买' => '该房间靓号已被购买',
|
'该房间靓号已被购买' => '该房间靓号已被购买',
|
||||||
'该工会靓号已被购买' => '该工会靓号已被购买',
|
'该公会靓号已被购买' => '该公会靓号已被购买',
|
||||||
'用户信息错误' => '用户信息错误',
|
'用户信息错误' => '用户信息错误',
|
||||||
'非法资金类型' => '非法资金类型',
|
'非法资金类型' => '非法资金类型',
|
||||||
'当前用户金币已达上限' => '当前用户金币已达上限',
|
'当前用户金币已达上限' => '当前用户金币已达上限',
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ class Decorate extends Model
|
|||||||
// 定义时间戳字段名
|
// 定义时间戳字段名
|
||||||
protected $createTime = 'createtime';
|
protected $createTime = 'createtime';
|
||||||
protected $updateTime = 'updatetime';
|
protected $updateTime = 'updatetime';
|
||||||
// 定义字段类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8工会靓号
|
// 定义字段类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8公会靓号
|
||||||
public $TypeArray = [1=>'头像框',2=>'坐骑',3=>'麦圈',6=>'个人靓号',7=>'房间靓号',8=>'工会靓号'];
|
public $TypeArray = [1=>'头像框',2=>'坐骑',3=>'麦圈',6=>'个人靓号',7=>'房间靓号',8=>'公会靓号'];
|
||||||
protected $FromType = [1=>'购买',2=>'后台赠送',3=>'礼盒开奖',4=>'好友赠送',5=>'首充赠送',6=>'天降好礼获得',7=>'财富等级特权赠送'];
|
protected $FromType = [1=>'购买',2=>'后台赠送',3=>'礼盒开奖',4=>'好友赠送',5=>'首充赠送',6=>'天降好礼获得',7=>'财富等级特权赠送'];
|
||||||
public function __construct($data = [])
|
public function __construct($data = [])
|
||||||
{
|
{
|
||||||
@@ -150,7 +150,7 @@ class Decorate extends Model
|
|||||||
return ['code' => 0, 'msg' => '该房间靓号已被购买', 'data' => null];
|
return ['code' => 0, 'msg' => '该房间靓号已被购买', 'data' => null];
|
||||||
}
|
}
|
||||||
if($decorate_info['type'] == 8 && $decorate_info['is_user_buy'] == 1){
|
if($decorate_info['type'] == 8 && $decorate_info['is_user_buy'] == 1){
|
||||||
return ['code' => 0, 'msg' => '该工会靓号已被购买', 'data' => null];
|
return ['code' => 0, 'msg' => '该公会靓号已被购买', 'data' => null];
|
||||||
}
|
}
|
||||||
$start_time = $now_time = time();
|
$start_time = $now_time = time();
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
@@ -368,7 +368,7 @@ class Decorate extends Model
|
|||||||
//用户装扮详情
|
//用户装扮详情
|
||||||
/*
|
/*
|
||||||
* @param $id 对象id
|
* @param $id 对象id
|
||||||
* @param $type 装扮类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8工会靓号
|
* @param $type 装扮类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8公会靓号
|
||||||
*/
|
*/
|
||||||
public function user_decorate_detail($id, $type){
|
public function user_decorate_detail($id, $type){
|
||||||
//根据$type 组装查询条件
|
//根据$type 组装查询条件
|
||||||
|
|||||||
Reference in New Issue
Block a user