Initial project files: BESCMS full source
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php namespace Phpcmf\Controllers;
|
||||
|
||||
class Api extends \Phpcmf\Common {
|
||||
|
||||
// 从微信菜单中进入授权
|
||||
public function xcx_access_token() {
|
||||
|
||||
$rts = xcx_get_access_token();
|
||||
if (!$rts['code']) {
|
||||
$this->_json(0, $rts['msg']);
|
||||
}
|
||||
|
||||
$this->_json(1, $rts['msg']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user