瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
34c5e175bd
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. +7
    -4
      src/applet/app/controllers/AliCallBackController.php

+ 7
- 4
src/applet/app/controllers/AliCallBackController.php 查看文件

@@ -120,12 +120,16 @@ class AliCallBackController extends \Phalcon\Mvc\Controller
}
}

//新增`自营-学校-订单表`数据
$model = new SelfSupportForSchoolOrd();
// 修改 / 新增`自营-学校-订单表`数据
$out_order_no = $biz_content["out_order_no"] ?? "";
$model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'");
if (empty($res)) {
$model = new SelfSupportForSchoolOrd();
}
$model->enterprise_id = $userIdentity->enterprise_id;
$model->uid = $userIdentity->uid;
$model->user_identity_id = $userIdentityId;
$model->out_order_no = $biz_content["out_order_no"] ?? "";
$model->out_order_no = $out_order_no;
$model->trade_no = $biz_content["trade_no"] ?? "";
$model->consumer = $biz_content["consumer"] ?? "";
$model->buyer_id = $biz_content["buyer_id"] ?? "";
@@ -183,5 +187,4 @@ class AliCallBackController extends \Phalcon\Mvc\Controller
}



}

Loading…
取消
儲存