main
jcadmin 2026-06-15 22:22:03 +08:00
parent 8baa5aa793
commit 28b2e5aaf3
1 changed files with 15 additions and 0 deletions

View File

@ -585,6 +585,21 @@ class Order extends BaseModel
$this->button_qupiao = BoolEnum::YES;
}
}
if (in_array($this->lottery_state, [LottState::WIN])) {
if ($this->cooperate_id > 0) {
if ($this->shop_id == $seller->shop_id) {
if ($this->cooperate_show == BoolEnum::NO && $this->cooperate_common == 1) {
$this->button_paijiang = BoolEnum::YES;
}
} else {
if ($this->cooperate_show == BoolEnum::YES) {
$this->button_paijiang = BoolEnum::YES;
}
}
} else {
$this->button_paijiang = BoolEnum::YES;
}
}
// 派奖,取票
if ($this->lottery_state == LottState::WAIT) {