|
|
@@ -232,7 +232,7 @@ class ApproachOrderForm extends Model
|
|
|
return $this->_model;
|
|
|
}
|
|
|
|
|
|
- public function verifyPayUPOP(): ?ApproachOrder
|
|
|
+ public function verifyPayUPOP(): ?bool
|
|
|
{
|
|
|
if (!$this->validate()) {
|
|
|
return null;
|
|
|
@@ -261,13 +261,12 @@ class ApproachOrderForm extends Model
|
|
|
ApproachOrderGoods::deleteAll('ORDER_SN = :ORDER_SN', [':ORDER_SN' => $this->sn]);
|
|
|
|
|
|
$transaction->commit();
|
|
|
+ return true;
|
|
|
} catch (Exception $e) {
|
|
|
$transaction->rollBack();
|
|
|
$this->addError('edit', $e->getFile() . ' ' . $e->getMessage());
|
|
|
return null;
|
|
|
}
|
|
|
-
|
|
|
- return $this->_model;
|
|
|
}
|
|
|
|
|
|
/**
|