{"action":"opened","issue":{"url":"https://api.github.com/repos/sansanboy/dajun/issues/43","repository_url":"https://api.github.com/repos/sansanboy/dajun","labels_url":"https://api.github.com/repos/sansanboy/dajun/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/sansanboy/dajun/issues/43/comments","events_url":"https://api.github.com/repos/sansanboy/dajun/issues/43/events","html_url":"https://github.com/sansanboy/dajun/issues/43","id":156680614,"number":43,"title":"yii insert with save","user":{"login":"sansanboy","id":4065370,"avatar_url":"https://avatars.githubusercontent.com/u/4065370?v=3","gravatar_id":"","url":"https://api.github.com/users/sansanboy","html_url":"https://github.com/sansanboy","followers_url":"https://api.github.com/users/sansanboy/followers","following_url":"https://api.github.com/users/sansanboy/following{/other_user}","gists_url":"https://api.github.com/users/sansanboy/gists{/gist_id}","starred_url":"https://api.github.com/users/sansanboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sansanboy/subscriptions","organizations_url":"https://api.github.com/users/sansanboy/orgs","repos_url":"https://api.github.com/users/sansanboy/repos","events_url":"https://api.github.com/users/sansanboy/events{/privacy}","received_events_url":"https://api.github.com/users/sansanboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-25T07:25:45Z","updated_at":"2016-05-25T07:25:45Z","closed_at":null,"body":"```\r\npublic function actionTest(){\r\n\r\n        $userid = '520';\r\n        $user_id = '';\r\n        $auth_app_id = '';\r\n        $app_auth_token = '';\r\n        $expires_in = '33';\r\n        $re_expires_in = '444';\r\n        $app_refresh_token = '';\r\n\r\n        $entry = new SysAlipay();\r\n        $entry->userid = $userid;\r\n        $entry->user_id = $user_id;\r\n        $entry->auth_app_id = $auth_app_id;\r\n        $entry->app_auth_token = $app_auth_token;\r\n        $entry->expires_in =  $expires_in;\r\n        $entry->re_expires_in = $re_expires_in;\r\n        $entry->app_refresh_token = $app_refresh_token;\r\n\r\n        var_dump($entry);\r\n        try{\r\n            $re = $entry->save(false);\r\n            dump($re);\r\n        }catch(Exception $e) {\r\n            var_dump($e);\r\n        }\r\n\r\n\r\n    }\r\n\r\n    public  function actionOk() {\r\n        $userid = '520';\r\n        $user_id = '';\r\n        $auth_app_id = '';\r\n        $app_auth_token = '';\r\n        $expires_in = '33';\r\n        $re_expires_in = '444';\r\n        $app_refresh_token = '';\r\n\r\n        $data['userid'] = $userid;\r\n        $data['user_id'] = $user_id;\r\n        $data['auth_app_id'] = $auth_app_id;\r\n        $data['app_auth_token'] = $app_auth_token;\r\n        $data['expires_in'] =  $expires_in;\r\n        $data['re_expires_in'] = $re_expires_in;\r\n        $data['app_refresh_token'] = $app_refresh_token;\r\n\r\n        $tem = new SysAlipay();\r\n        $tem->setAttributes($data);\r\n        $re = $tem->insert();\r\n        dump($re);\r\n    }\r\n```"}}
{"actor":{"display_login":"sansanboy"}}