130 个回复 | 最后更新于 2017-07-02
2016-03-29   #60

还没呢。

#59 @test :

这个帖子下沉啦,难道是要更新版本了?0.0

2016-04-07   #61

为什么编译后运行是秒退

2016-04-07   #62

2016-04-07   #63

厉害

2016-04-09   #64

作者能否告知,什么情况下作为登陆成功的验证?以及各项cookie的作用?

2016-04-09   #65

回复#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

这是登录成功的验证。

2016-04-09   #66

回复#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
}


2016-04-09   #67

回复#66 @lincanbin :

我是想要不通过现有的方式,直接设置cookie进行登陆,请问该如何实现呢?

2016-04-09   #68

回复#66 @lincanbin :

原来我已经成功了,但是缓存问题所以刷不出来。。。感谢文武兄,另外就是。。你写的代码其实有点乱呢

2016-04-13   #69

network error on adnroid app. wont load thread post.

2016-04-13   #70

回复#69 @kirael :

print your log. 

2016-04-13   #71

@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)


2016-04-14   #72

im using bluestack.

2016-04-14   #73

回复#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.

2016-04-14   #74

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?

2016-04-15   #75

@lincanbin can you Teamviewer me i dont know what is the problem why im getting network error.

2016-04-16   #76

莫非客户端还要自己汉化。。。。。

2016-04-16   #77

回复#76 @zwin :

GitHub的master分支的最新版,就有中文啊。

2016-04-16   #78

回复#75 @kirael :

Tell me your API domain name. I'm going to check it out for you. 

2016-04-16   #79

Reply to #0 @lincanbin :

哦哦,谢谢辣

登录后方可回帖

登 录
信息栏

Carbon Forum是一个基于话题的高性能轻型PHP论坛

下载地址:Carbon Forum v5.9.0
QQ群:12607708(QQ我不常上)

donate

手机支付宝扫描上方二维码可向本项目捐款

粤公网安备 44030602003677号
粤ICP备17135490号

Loading...