Browse Source

update

master
dengbiao 5 months ago
parent
commit
76e13f6807
2 changed files with 13 additions and 6 deletions
  1. +7
    -6
      src/applet/app/controllers/AliCallBackController.php
  2. +6
    -0
      src/common/Model/SelfSupportForSchoolOrd.php

+ 7
- 6
src/applet/app/controllers/AliCallBackController.php View File

@@ -135,10 +135,10 @@ class AliCallBackController extends \Phalcon\Mvc\Controller


// 修改 / 新增`自营-学校-订单表`数据 // 修改 / 新增`自营-学校-订单表`数据
$out_order_no = $biz_content["out_order_no"] ?? ""; $out_order_no = $biz_content["out_order_no"] ?? "";
$model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'");
$model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'");
if (empty($model)) { if (empty($model)) {
$model = new SelfSupportForSchoolOrd();
$model->create_at = date("Y-m-d H:i:s");
$model = new SelfSupportForSchoolOrd();
$model->create_at = date("Y-m-d H:i:s");
} }
$model->enterprise_id = $userIdentity->enterprise_id; $model->enterprise_id = $userIdentity->enterprise_id;
$model->uid = $userIdentity->uid; $model->uid = $userIdentity->uid;
@@ -161,6 +161,7 @@ class AliCallBackController extends \Phalcon\Mvc\Controller
$model->order_status = ($biz_content["order_status"] == "ORDER_SUCCESS") ? 2 : 1; //支付状态 $model->order_status = ($biz_content["order_status"] == "ORDER_SUCCESS") ? 2 : 1; //支付状态
$model->debt_business_code = $biz_content["debt_business_code"] ?? ""; $model->debt_business_code = $biz_content["debt_business_code"] ?? "";
$model->debt_business_msg = $biz_content["debt_business_msg"] ?? ""; $model->debt_business_msg = $biz_content["debt_business_msg"] ?? "";
$model->pay_time = $biz_content["gmt_payment"] ?? ""; //付款时间
$model->update_at = date("Y-m-d H:i:s"); $model->update_at = date("Y-m-d H:i:s");
$model->save(); $model->save();


@@ -205,10 +206,10 @@ class AliCallBackController extends \Phalcon\Mvc\Controller


// 修改 / 新增`自营-学校-订单表`数据 // 修改 / 新增`自营-学校-订单表`数据
$out_order_no = $biz_content["out_order_no"] ?? ""; $out_order_no = $biz_content["out_order_no"] ?? "";
$model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'");
$model = SelfSupportForSchoolOrd::findFirst("out_order_no = '$out_order_no'");
if (empty($model)) { if (empty($model)) {
$model = new SelfSupportForSchoolOrd();
$model->create_at = date("Y-m-d H:i:s");
$model = new SelfSupportForSchoolOrd();
$model->create_at = date("Y-m-d H:i:s");
} }
$model->enterprise_id = $userIdentity->enterprise_id; $model->enterprise_id = $userIdentity->enterprise_id;
$model->uid = $userIdentity->uid; $model->uid = $userIdentity->uid;


+ 6
- 0
src/common/Model/SelfSupportForSchoolOrd.php View File

@@ -119,6 +119,12 @@ class SelfSupportForSchoolOrd extends BasicModel
*/ */
public $face_time; public $face_time;


/**
*
* @var string
*/
public $pay_time;

/** /**
* *
* @var integer * @var integer


Loading…
Cancel
Save