Browse Source

修改状态

afa 7 tháng trước cách đây
mục cha
commit
3af7775422
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;