Skip to content

oceanxuikun/gamecenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wechat gamecenter

This is a project using CodeIgniter to generate Wechat Gamecenter API Server.

##How to use?

  1. Download the code to your host (PHP required).
  2. Edit config files.
    • /gamecenter/application/config/config.php
    $config['base_url']="http://yourdomain.com"
    • /gamecenter/application/config/database.php
    
     $db['default']['hostname'] = 'hostname';
     $db['default']['username'] = 'username';
     $db['default']['password'] = 'password';
     $db['default']['database'] = 'gamecenter';
     $db['default']['dbdriver'] = 'mysql';
     
    • /gamecenter/application/config/weixin_config.php
    
     $config['token'] = 'yourtoken';  // 微信公共平台连接token
     $config['grant_type'] = 'client_credential'; // grant_type 是获取access_token填写client_credential
     $config['appid'] = 'appid';  // appid 是第三方用户唯一凭证
     $config['secret'] = 'appsecret'; // secret 是第三方用户唯一凭证密钥,即appsecret
     
  3. Create database.

About

a wechat gamecenter rest api server based on Codeigniter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages