获取token修改

This commit is contained in:
2017-09-18 23:37:02 +08:00
parent c0cfb361ff
commit e274630d51

View File

@@ -20,9 +20,7 @@ class Index extends Api {
$appid = $request->post('appid', '');
$appsecret = $request->post('appsecret', '');
$appid = "32432452345324";
$appsecret = "a2b1Yubmej8qFLZbijcEenj9CoKWgratNdIpWha8LZ64xVfSt1YM5";
//$client = db('Client')->where('appid', $appid)->where('appsecret', $appsecret)->value('id');
$client = db('Client')->where('appid', $appid)->where('appsecret', $appsecret)->value('id');
$client = 1;
if ($client) {
$this->data['time'] = time();