作者 王智

修改

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