{"action":"created","issue":{"url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/39","repository_url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod","labels_url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/39/comments","events_url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/39/events","html_url":"https://github.com/glzjin/ss-panel-v3-mod/issues/39","id":153741459,"number":39,"title":"php xcat dailyjob 报错","user":{"login":"lion1991","id":18396082,"avatar_url":"https://avatars.githubusercontent.com/u/18396082?v=3","gravatar_id":"","url":"https://api.github.com/users/lion1991","html_url":"https://github.com/lion1991","followers_url":"https://api.github.com/users/lion1991/followers","following_url":"https://api.github.com/users/lion1991/following{/other_user}","gists_url":"https://api.github.com/users/lion1991/gists{/gist_id}","starred_url":"https://api.github.com/users/lion1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lion1991/subscriptions","organizations_url":"https://api.github.com/users/lion1991/orgs","repos_url":"https://api.github.com/users/lion1991/repos","events_url":"https://api.github.com/users/lion1991/events{/privacy}","received_events_url":"https://api.github.com/users/lion1991/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T09:56:41Z","updated_at":"2016-05-09T09:58:41Z","closed_at":"2016-05-09T09:58:38Z","body":" php xcat dailyjob 的时候报错 PHP Notice: Trying to get property of non-object in /home/wwwroot/xxxxx/app/Command/Job.php on line 798\r\n\r\n795 $rbusers = RadiusBan::all();\r\n796 foreach($rbusers as $sinuser){\r\n797 $user=User::find($sinuser->userid);\r\n798 if($user->enable==1&&(strtotime($user->expire_in)>time()||strtotime($user->expire_in)<644447105)&&$user->transfer_enable>$user->u+$user->d)\r\n799 {\r\n800 $sinuser->delete();\r\n801 Radius::Add($user,$user->passwd);\r\n\r\n\t\t}\r\n}\r\n删除此段后运行没问题..."},"comment":{"url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/comments/217823903","html_url":"https://github.com/glzjin/ss-panel-v3-mod/issues/39#issuecomment-217823903","issue_url":"https://api.github.com/repos/glzjin/ss-panel-v3-mod/issues/39","id":217823903,"user":{"login":"glzjin","id":7975407,"avatar_url":"https://avatars.githubusercontent.com/u/7975407?v=3","gravatar_id":"","url":"https://api.github.com/users/glzjin","html_url":"https://github.com/glzjin","followers_url":"https://api.github.com/users/glzjin/followers","following_url":"https://api.github.com/users/glzjin/following{/other_user}","gists_url":"https://api.github.com/users/glzjin/gists{/gist_id}","starred_url":"https://api.github.com/users/glzjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glzjin/subscriptions","organizations_url":"https://api.github.com/users/glzjin/orgs","repos_url":"https://api.github.com/users/glzjin/repos","events_url":"https://api.github.com/users/glzjin/events{/privacy}","received_events_url":"https://api.github.com/users/glzjin/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T09:58:40Z","updated_at":"2016-05-09T09:58:40Z","body":"并不是报错，你是把那个用户给禁用之后就删了吧。或者就是超流量之后就删了，没事了 \nglzjin\n2016年5月9日 下午5:56，lion1991 <notifications@github.com>写道：php xcat dailyjob 的时候报错 PHP Notice: Trying to get property of non-object in /home/wwwroot/xxxxx/app/Command/Job.php on line 798\r\n\r\n795 $rbusers = RadiusBan::all();\r\n796 foreach($rbusers as $sinuser){\r\n797 $user=User::find($sinuser->userid);\r\n798 if($user->enable==1&&(strtotime($user->expire_in)>time()||strtotime($user->expire_in)<644447105)&&$user->transfer_enable>$user->u+$user->d)\r\n799 {\r\n800 $sinuser->delete();\r\n801 Radius::Add($user,$user->passwd);\r\n\r\n    }\r\n\r\n\r\n}\r\n删除此段后运行没问题...\r\n\r\n—You are receiving this because you are subscribed to this thread.Reply to this email directly or view it on GitHub"}}