quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
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;
        });
 
    }
}