时间:2021-07-01 10:21:17 帮助过:4人阅读
ThinkPhp 约定的伪静态路径为:模块名/方法名[[/参数名/参数值]...]
action="__URL__/action"
function alipay() {
$this->submit_url='';
}
function create_form($list) {
$pname=get_class($this);
$this_script = "http://{$_SERVER['HTTP_HOST']}";
$this->add_field ( 'ordsubject', 'Products For SN:' . $list ['sn'] ); //产品名称
$this->add_field ( 'trade_no', $list ['sn'] ); //订单号码
$this->add_field ( 'ordtotal_fee', $list ['orders_total'] ); //交易价格
$this->form.= "\n";
if(GetSettValue($list['payment_module_code'].'_autosubmit')==1){
$delay=GetSettValue($list['payment_module_code'].'_delay');
$delay=$delay?$delay:5;
$this->form.=$this->submit($delay);//是否自动提交,延迟5秒
}
return $this->form;
}
上面是我的代码,我的都是写在Lib的文件夹里的,不是写在模版上的