作者 lihan
1 个管道 的构建 通过 耗费 0 秒

支付宝

... ... @@ -91,9 +91,13 @@ class ActivityController extends HomeBaseController
$wx = new \WeChatCommon();
if(empty(session('user.city'))) {
$pos = Db:: name('user')->field('lat,lng')->where(['id' => session('user.id')])->find();
$return = json_decode(anti_analysis($pos['lat'], $pos['lng']), true);
$city = $return['result']['address_component']['city'];
session('user.city', $city);
if(empty($pos['lat']) || empty($pos['lng'])) {
}else {
$return = json_decode(anti_analysis($pos['lat'], $pos['lng']), true);
$city = $return['result']['address_component']['city'];
session('user.city', $city);
}
}
return $this->fetch(':_list', [
'result' => $result,
... ...
... ... @@ -360,8 +360,9 @@ class OrderController extends HomeBaseController
//微信支付宝中转页面
public function temp() {
if(cmf_is_wechat()) {
echo '点击右上角,使用浏览器打开';
echo '<div style="">点击右上角,在浏览器打开</div>';
}else {
$
$this->alipay(1);
}
... ...