作者 sgj

js sdk add

... ... @@ -15,8 +15,8 @@ return [
/**
* 账号基本信息,请从微信公众平台/开放平台获取
*/
'app_id' => 'wxeea88737d9d9c418', // AppID
'secret' => '8c2160e14e73d396ee8d2599c70812ee', // AppSecret
'app_id' => 'wx0101f4d17e85341f', // AppID
'secret' => '93423b899b154396c95ea9939645089e', // AppSecret
'token' => 'bronet', // Token
'aes_key' => 'qblu4O3peCTWjLLEqKqLjQhJNNeCTi2se2EPeVARsbk', // EncodingAESKey,安全模式下请一定要填写!!!
/**
... ...
... ... @@ -20,6 +20,7 @@ use think\Log;
use think\Request;
class IndexController extends HomeBaseController
{
... ... @@ -363,6 +364,11 @@ class IndexController extends HomeBaseController
public function inquiry(){
$Hospital= new HospitalModel();
$config=config('wechat_config');
$Wechat=new Application($config);
$js = $Wechat->js;
$config=$js->config(array('onMenuShareQQ', 'onMenuShareWeibo'), true);
dump($config);
$platment=$Hospital->getPaltform()->toArray();
$hospital=$Hospital->getHospital()->toArray();
$this->assign('hospital',$hospital);
... ...