main
parent
8baa5aa793
commit
28b2e5aaf3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue