房间热度卡开发-调试
This commit is contained in:
@@ -597,7 +597,7 @@ class Decorate extends Model
|
||||
return ['code' => 0, 'msg' => '房间热度卡不存在', 'data' => null];
|
||||
}
|
||||
if(in_array($info['type'],array_keys($this->SpecialType))){
|
||||
if ($info['num']-1 < 0) {
|
||||
if ($info['num']-$num < 0) {
|
||||
return ['code' => 0, 'msg' => '无可用房间热度卡', 'data' => null];
|
||||
}
|
||||
}
|
||||
@@ -624,7 +624,7 @@ class Decorate extends Model
|
||||
$reslut = Db::name('vs_user_decorate')->where($map)->update($data);
|
||||
if (!$reslut) {
|
||||
Db::rollback();
|
||||
return ['code' => 0, 'msg' => "设置失败", 'data' => null];
|
||||
return ['code' => 0, 'msg' => "使用失败", 'data' => null];
|
||||
}
|
||||
|
||||
if (empty($room_id)) {
|
||||
@@ -669,7 +669,7 @@ class Decorate extends Model
|
||||
$result = Db::name('vs_user_decorate')->where($map)->update($data);
|
||||
if (!$result) {
|
||||
Db::rollback();
|
||||
return ['code' => 0, 'msg' => "设置失败", 'data' => null];
|
||||
return ['code' => 0, 'msg' => "使用失败", 'data' => null];
|
||||
}
|
||||
if (empty($room_id)) {
|
||||
Db::rollback();
|
||||
@@ -683,7 +683,7 @@ class Decorate extends Model
|
||||
$increase_hot_value_all = 0;
|
||||
foreach ($info as $key => $value) {
|
||||
$increase_hot_value = db::name('vs_decorate')->where(['did' => $value['did']])->value('ext_value') ?? 0;
|
||||
$increase_hot_value = $increase_hot_value * $num;
|
||||
$increase_hot_value = $increase_hot_value * $value['num'];
|
||||
if ($room_info['today_hot_value'] <= $increase_hot_value) {
|
||||
db::name('vs_room')->where(['id' => $room_id])->update(['today_hot_value' => 0]);
|
||||
} else {
|
||||
|
||||
@@ -158,7 +158,7 @@ class PerformPerSecond
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if(in_array($value['yun_order_status'],[261,5077,255,254])){
|
||||
if(in_array($value['yun_order_status'],[261,5077,255,254,6050])){
|
||||
continue;
|
||||
}
|
||||
echo "提现订单查询:".$value['order_sn']."\n";
|
||||
@@ -198,7 +198,7 @@ class PerformPerSecond
|
||||
'received_tax_amount' => $result['data']['received_tax_amount'] ?? 0,
|
||||
]);
|
||||
// if(in_array($result['data']['code'],[5077,261]) && $value['yun_order_status'] == null){
|
||||
if(in_array($result['data']['code'],[5077,261,255,254]) && !in_array($value['yun_order_status'],[5077,261,255,254])){
|
||||
if(in_array($result['data']['code'],[5077,261,255,254,6050]) && !in_array($value['yun_order_status'],[5077,261,255,254,6050])){
|
||||
// if($result['data']['code']==5077 && $value['yun_order_status'] == null){
|
||||
//该支付宝账户不存在或未开通手机号转账功能。如有疑问,请收款用户联系支付宝客服咨询。
|
||||
//退还金币
|
||||
|
||||
Reference in New Issue
Block a user