作者 王智

修改

@@ -498,7 +498,7 @@ class Common extends Api @@ -498,7 +498,7 @@ class Common extends Api
498 if (!$IsUpdateAgreement) { 498 if (!$IsUpdateAgreement) {
499 $this->error('协议状态更改失败', 0); 499 $this->error('协议状态更改失败', 0);
500 } 500 }
501 - $res = Db::name('tuikuan')->where('OrderSn', $OrderInfo['OrderSn'])->where('seller_id', $IsSeller)->update(['status' => $params['status']]); 501 + $res = Db::name('tuikuan')->where('OrderSn', $OrderInfo['OrderSn'])->where('seller_id', $IsSeller)->update(['status' => $params['type']]);
502 if ($params['type'] == 1) { 502 if ($params['type'] == 1) {
503 $OrderSn = Db::name('agreement')->where('id', $params['id'])->find(); 503 $OrderSn = Db::name('agreement')->where('id', $params['id'])->find();
504 $PayOrderInfo = Db::name('pay_order')->where('OrderSn', $OrderSn['OrderSn'])->where('type', 1)->find(); 504 $PayOrderInfo = Db::name('pay_order')->where('OrderSn', $OrderSn['OrderSn'])->where('type', 1)->find();