diff --git a/src/applet/app/controllers/AliCallBackController.php b/src/applet/app/controllers/AliCallBackController.php index c163acd..f013bcb 100644 --- a/src/applet/app/controllers/AliCallBackController.php +++ b/src/applet/app/controllers/AliCallBackController.php @@ -136,7 +136,7 @@ class AliCallBackController extends \Phalcon\Mvc\Controller // 修改 / 新增`自营-学校-订单表`数据 $out_order_no = $biz_content["out_order_no"] ?? ""; $model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'"); - if (empty($res)) { + if (empty($model)) { $model = new SelfSupportForSchoolOrd(); } $model->enterprise_id = $userIdentity->enterprise_id;