Пример #1
0
 public function shaddressDelete()
 {
     $db = new DB_test();
     $arr_header = $this->arr_header;
     $arr_body = $this->arr_body;
     $arr_channelinfo = $this->arr_channelinfo;
     $bkntno = trim($arr_body['bkntno']);
     //交易流水号
     //$paycardid = trim(GetPayCalcuInfo::readpaycardid($arr_body['paycardid'])); //刷卡器设备号
     $authorid = trim($arr_channelinfo['authorid']);
     //authorid
     $shaddressid = $arr_body['shaddressid'];
     $nowdate = date("Y-m-d H:i:s");
     $wherequery = "fd_shaddress_id  = '{$shaddressid}'";
     $db->delete("tb_authorshaddress", $wherequery);
     $arr_message = array("result" => "success", "message" => "删除收货地址成功!");
     $retcode = "0";
     //反馈状态 0 成功 200 自定义错误
     $arr_msg['msgbody']['result'] = $arr_message['result'];
     $arr_msg['msgbody']['message'] = $arr_message['message'];
     $arr_msg['msgbody']['bkntno'] = $bkntno;
     $returnvalue = array("msgbody" => $arr_msg['msgbody']);
     $returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
     return $returnval;
 }