瀏覽代碼

feat():修改获取授权码的方式

geek 4 年之前
父節點
當前提交
1d3d7ec18b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/index/controller/User.php

+ 1 - 1
application/index/controller/User.php

@@ -22,7 +22,7 @@ class User extends BaseController {
         if (empty($channelId)){
             throw new ApiException('渠道id不为空');
         }
-        file_put_contents('log', die('Y-m-d H:i:s').'-'.json_encode(input()).PHP_EOL, FILE_APPEND);
+        file_put_contents('log', date('Y-m-d H:i:s').'-'.json_encode(input()).PHP_EOL, FILE_APPEND);
 //        if (empty(input('unionid'))){
 //            throw new ApiException('unionid不为空');
 //        }