|
|
@@ -265,13 +265,11 @@ class OrderController extends BaseController
|
|
|
$couponId = isset($post['couponId']) ? $post['couponId'] : 0;
|
|
|
|
|
|
if ($payWay == 0) {
|
|
|
-
|
|
|
$orderId = $order['id'];
|
|
|
$name = '购买商品';
|
|
|
$totalFee = $actPrice;
|
|
|
- $userId = $post['userId'];
|
|
|
$user = UserService::getById($this->userId);
|
|
|
-
|
|
|
+ Yii::info(json_encode($user));
|
|
|
$openId = isset($user['openId']) ? $user['openId'] : 0;
|
|
|
if (httpUtil::isMiniProgram()) {
|
|
|
//小程序使用miniOpenId
|
|
|
@@ -280,7 +278,6 @@ class OrderController extends BaseController
|
|
|
if (empty($openId)) {
|
|
|
util::fail('没有找到客户的openId');
|
|
|
}
|
|
|
-
|
|
|
$typeList = configDict::getConfig('capitalType');
|
|
|
$capitalType = $typeList['xhOrder']['id'];
|
|
|
$attach = 'capitalType=' . $capitalType . '&couponId=' . $couponId;//将流水类型、优惠卷传过去
|