下单展示付款方式

This commit is contained in:
2020-08-29 23:21:58 +08:00
parent 4184b2c7bc
commit 59aacbb71b
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php
namespace wstmart\app\controller;
use think\Db;
use wstmart\common\model\Orders as OM;
/**
* ============================================================================
@ -30,8 +31,14 @@ class Qlgpay extends Base{
}
$userId = $this->getUserId();
$shopId = isset($rs['shopId'])?$rs['shopId']:0;
$m = new OM();
$pay = array_merge($pay,$m->getPayMoney($userId,$pay['needPay']));
$pay['shopId'] = $shopId;
$shopUserId = Db::name('shops')->where('shopId', '=', $shopId)->value('userId');
if ($shopUserId) $pay['shopPaymentInfo'] = Db::name('user_recive')
->where('userId', '=', $shopUserId)
->find();
exit(jsonReturn('',1,$pay));
}