Authored by biao

Merge branch 'hotfix/life'

This diff could not be displayed because it is too large.
... ... @@ -7,7 +7,7 @@
var $ = require('jquery');
module.exports = function() {
var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
var _weChatInterface = '/life/getSignPackage';
$.getJSON(_weChatInterface + '?pageurl=' +
encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function (json) {
var _appId, _timestamp, _nonceStr, _signature;
... ...
... ... @@ -76,4 +76,15 @@ class LifeController extends AbstractAction
'couponPage' => true));
}
public function getSignPackageAction()
{
$curl = 'http://www.yohoshow.com/api/wechat/getSignPackage';
$pageurl = $this->get('pageurl', '');
$callback = $this->get('callback', '');
$url = $curl . '?pageurl=' . urlencode($pageurl) . "&callback=" . $callback;
$res = file_get_contents($url);
echo $res;
exit;
}
}
... ...