|
|
@@ -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;
|