Carbon Forum 5.0.1 发布,新增API,配套Android客户端。 Page4
- 登录后方可回帖
还没呢。
#59 @test :这个帖子下沉啦,难道是要更新版本了?0.0
回复#64 @mattest :
if (!HashEquals($DBUser['Password'], md5($Password . $DBUser['Salt']))) { $Error = $Lang['Password_Error']; $ErrorCode = 101004; break; }
https://github.com/lincanbin/Carbon-Forum/blob/master/login.php#L63
这是登录成功的验证。
回复#64 @mattest :
https://github.com/lincanbin/Carbon-Forum/blob/master/common.php#L867
$CurUserID = intval(GetCookie('UserID'));//保存当前用户的ID $CurUserExpirationTime = intval(GetCookie('UserExpirationTime'));//Cookie的过期时间,用以替代浏览器强制过期,30天有效 $CurUserCode = GetCookie('UserCode');//用户信息校验码 if ($CurUserExpirationTime > $TimeStamp && $CurUserExpirationTime < ($TimeStamp + 2678400) && $CurUserID && $CurUserCode) { //balabala }
回复#66 @lincanbin :
我是想要不通过现有的方式,直接设置cookie进行登陆,请问该如何实现呢?
回复#66 @lincanbin :
原来我已经成功了,但是缓存问题所以刷不出来。。。感谢文武兄,另外就是。。你写的代码其实有点乱呢
回复#69 @kirael :
print your log.
@lincanbin
here's my log
An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) at sun.nio.ch.IOUtil.write(IOUtil.java:65) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487) at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:686) at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:349) at com.android.ddmlib.Client.requestAllocationStatus(Client.java:525) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:569) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:544) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:506) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:402) at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:64) at com.android.ddmlib.DeviceMonitor$1.run(DeviceMonitor.java:325)
回复#72 @kirael :
These problem can be simply solved by closing Android Studio and restarting it again. Android Studio sometimes fails to establish a connection with the Emulator, so this can happen in some cases.
well i try to install the in my device and it show the network error. i have a free domain name and i create a subdomain name api inside that i paste file. but when ill tried to register it show the verification code but it wont me register because its show network error. is there any comfiguration should i do?
@lincanbin can you Teamviewer me i dont know what is the problem why im getting network error.
回复#76 @zwin :
GitHub的master分支的最新版,就有中文啊。
回复#75 @kirael :
Tell me your API domain name. I'm going to check it out for you.
Reply to #0 @lincanbin :
哦哦,谢谢辣