作者 sgj

js sdk add

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