作者 王智

修改

... ... @@ -417,9 +417,7 @@ class Common extends Api
$res = Db::name('agreement')->where('id', $params['id'])->update(['status' => 4, 'updatetime' => time()]);
//拒绝签订协议 给予用户退款
$OrderSn = Db::name('agreement')->where('id', $params['id'])->find();
echo '1';
die;
$PayOrderInfo = Db::name('pay_order')->where('OrderSn', $OrderSn)->where('type', 1)->find();
$PayOrderInfo = Db::name('pay_order')->where('OrderSn', $OrderSn['OrderSn'])->where('type', 1)->find();
$TuiMoney = $OrderSn['UpMoney'] + $OrderSn['Money'];
//配置
$config = [
... ...