<?php use Overtrue\Wechat\Js; $appId = 'wx3cf0f39249eb0e60'; $secret = 'f1c242f4f28f735d4687abb469072a29'; $js = new Js($appId, $secret); ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="Cache-Control" content="none"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Title</title> <style> body{ padding: 0; margin: 0; } .statue{ width: 360px; height: 200px; margin: 100px auto; } table{ width: 100%; margin: 0; padding: 0; float: left; text-align: center; }
/** * @param $array * @return array|string */ public function getJssdkConfig($array) { $js = new Js($this->_appId, $this->_secret); return $js->config($array); }