浏览代码

修改状态

afa 7 月之前
父节点
当前提交
3af7775422
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/common/logic/PledgeLogic.php

+ 2 - 2
application/common/logic/PledgeLogic.php

@@ -7,6 +7,7 @@ use think\Env;
 use think\Cache;
 use think\Loader ;
 use fast\Asset;
+use app\common\model\ProductOrder;
 use app\common\model\LedgerTeacChangeModel;
 use app\common\model\ProductPledges;
 
@@ -14,7 +15,6 @@ class PledgeLogic
 {
 
 
-  
     //获取产品信息
     public  static function getByProductIdList(object $list, string $lan = 'zh')
     {
@@ -101,7 +101,7 @@ class PledgeLogic
 
         //修改状态
         $detail =json_decode($rows->details, true);
-        Loader::model('ProductOrder')::whereIn('order_no', array_column($detail, 'order_no'))->setField('status', $model::Paid);
+        Loader::model('ProductOrder')::whereIn('order_no', array_column($detail, 'order_no'))->setField('status', ProductOrder::Paid);
 
         $rows->status    = $model::Remove;
         $rows->last_time = $time;