You've already forked qlg.tsgz.moe
下单展示付款方式
This commit is contained in:
@ -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));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user