|
|
@@ -132,8 +132,8 @@ class ProfitShareReceiverEntity extends BaseEntity
|
|
|
public function bind(int $id): self
|
|
|
{
|
|
|
$entity = $this->getReceiver(['id' => $id]);
|
|
|
- if ($entity->status != ReceiverStatusEnum::VERIFIED) {
|
|
|
- throw_logic_exception('验证通过状态才可以绑定!');
|
|
|
+ if ($entity->status != ReceiverStatusEnum::VERIFIED || $entity->action != ReceiverActionEnum::ADD) {
|
|
|
+ throw_logic_exception('验证通过状态新增记录才可以绑定!');
|
|
|
}
|
|
|
if (!$entity->entrust_file_path) {
|
|
|
if (!$entity->entrust_local_path) {
|