whtsky / PyWapFetion

A simple Fetion lib for Python.
72 stars 43 forks source link

send API do nothing for the first time, then success #14

Closed crook closed 12 years ago

crook commented 12 years ago

fetion.send API failed to send message for the first run. However, it will be successfully twice or more time.

it's very strange.... From the debug message below, please fix this issue.

the returned message is "您正在登录中国移动WAP飞信,请稍候…"

Thanks, Ray

========================debug info========================

(Pdb) print htm <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

您正在登录中国移动WAP飞信,请稍候…

【我们在努力建设】
[活动]轻轻一点,奖品到手!
2012年5月14日:生日提醒上线,朋友、父母生日再也不会忘记啦!
2012年4月24日:异网注册上线,联通和电信用户都可以玩飞信啦!
2011年7月21日:搜友功能帮您快速定位好友,还能查找非好友!
2011年6月7日:你可能认识的人上线,帮您找到好朋友!
温馨提示:请勿轻信汇款,中奖和话费充值等信息,谨防受骗。
查看更多>>

手机飞信网-导航-客服
我的飞信.同窗.家园
[08月16日 21:55]

(Pdb) print self.opener.open(request).read() <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

短信发送成功!3秒自动返回WAP飞信..

我的资料>给自己发短信
手机飞信网-导航-客服
我的飞信.同窗.家园
[08月16日 21:56]

(Pdb) print self.opener.open(request).read() <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

短信发送成功!3秒自动返回WAP飞信..

我的资料>给自己发短信
手机飞信网-导航-客服
我的飞信.同窗.家园
[08月16日 21:57]

whtsky commented 12 years ago

Fixed :)

crook commented 12 years ago

test pass. Well done!