|
|
@@ -146,7 +146,7 @@ class ApproachOrderForm extends Model
|
|
|
{
|
|
|
$parentValidate = parent::beforeValidate();
|
|
|
if ($this->sn) {
|
|
|
- $this->_model = Order::findOne(['SN'=>$this->sn]);
|
|
|
+ $this->_model = ApproachOrder::findOne(['SN'=>$this->sn]);
|
|
|
if (!$this->_model){
|
|
|
$this->addError('sn', '订单不存在');
|
|
|
return false;
|
|
|
@@ -225,11 +225,10 @@ class ApproachOrderForm extends Model
|
|
|
*/
|
|
|
public function verifyPayOnline(): ?ApproachOrder
|
|
|
{
|
|
|
-// if (!$this->validate()) {
|
|
|
-// return null;
|
|
|
-// }
|
|
|
+ if (!$this->validate()) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
- $this->_model = Order::findOne(['SN' => $this->sn]);
|
|
|
LoggerTool::info([$this->sn, $this->note]);
|
|
|
|
|
|
// 调用iPay88支付校验
|