Browse Source

['direct_shopping']

master
dutsc 3 years ago
parent
commit
efc27f6b43
  1. 5
      mobile/plugins/payment/wxpay.php
  2. 2
      mobile/source/apps/flow/controllers/IndexController.php

5
mobile/plugins/payment/wxpay.php

@ -258,6 +258,8 @@ class wxpay
// 'total_fee' => $total_fee.'',
);
$jsApiParameters = json_encode($jsApiParameters);
echo "\r\n direct_shopping: \r\n";
var_dump($_SESSION['direct_shopping']);
// wxjsbridge
@ -293,9 +295,10 @@ class wxpay
{
jsApiCall();
}
window.location.href = "{U(\'flow/index/done\')}";
}
</script>';
// window.location.href = "{U(\'flow/index/done\')}";
$button = '<a class="box-flex btn-submit" type="button" onclick="callpay()">微信支付(测试)</a>' . $js;
// $button = '<a class="box-flex btn-submit" type="button" onclick="">微信支付(测试)</a>';

2
mobile/source/apps/flow/controllers/IndexController.php

@ -1056,7 +1056,7 @@ class IndexController extends FrontendController {
user_uc_call('add_feed', array($order['order_id'], BUY_GOODS)); //推送feed到uc
unset($_SESSION['flow_consignee']); // 清除session中保存的收货人信息
unset($_SESSION['flow_order']);
unset($_SESSION['direct_shopping']);
unset($_SESSION['direct_shopping']); // sc_test
//订单分子订单 start
$order_id = $order['order_id'];

Loading…
Cancel
Save