更新内核

增加自定义表单(未完成)
This commit is contained in:
2017-07-04 12:13:24 +08:00
parent 8af311aa07
commit aef819d417
82 changed files with 12328 additions and 59 deletions

View File

@@ -0,0 +1,25 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\api\controller;
use app\common\controller\Api;
class Wechat extends Api {
public function config(){
$js = new \Wechat\WechatScript(config('wxapp'));
$this->data['data'] = $js->getJsSign('http://test.tensent.cn:81/home');
// dump($this->data);
// $this->data['data'] = array(
// 'appid' => 'dddd',
// 'timestamp' => time()
// );
return $this->data;
}
}