1,593
社区成员
发帖
与我相关
我的任务
分享
begin
with adoquery1 do
begin
close;
sql.clear;
sql.add('select top 1 id,mobile,serviceCode,linkid,spNum,moMsg from tb_118 where type=0 order by id');
open;
a:= adoquery1.recordcount;
id:=adoquery1.fieldbyname('id').asinteger;
mobile:= adoquery1.fieldbyname('mobile').asstring;
servicecode:= adoquery1.fieldbyname('serviceCode').asstring;
linkid:= adoquery1.fieldbyname('linkid').asstring;
spnum:= adoquery1.fieldbyname('spNum').asstring;
momsg:= adoquery1.fieldbyname('moMsg').asstring;
Memo2.Lines.Text:= idhttp1.get('http://localhost/cxxt_sms/get/get1.asp?mobile=:mobile&servicecode=:servicecode&linkid=:linkid&spnum=:spnum&momsg=:momsg');
var Ts:TStringStream;
Ts:=TStringStream.Create('');
idhttp1.get('http://localhost/cxxt_sms/get/get1.asp?mobile='+mobile+'&servicecode='+servicecode+'&linkid='+linkid+'&spnum='+spnum+'&momsg='+momsg,Ts);
Memo2.Lines.Text:=Ts.DataString;