quanwei
2026-01-17 e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
 
namespace app\api\model\supplier;
use app\common\model\supplier\DepositRefund as DepositRefundModel;
use app\api\model\supplier\Supplier as SupplierModel;
/**
 * 押金退款模型
 */
class DepositRefund extends DepositRefundModel
{
    public function add($data)
    {
        return $this->transaction(function () use ($data) {
            $data['app_id'] = self::$app_id;
            SupplierModel::where('shop_supplier_id',$data['shop_supplier_id'])
            ->update(['status'=>10]);
            $this->save($data);
            return true;
        });
 
    }
}