Commit d00ccf23 authored by christ's avatar christ

pc

parent 78650b68
......@@ -273,7 +273,11 @@ class Common
return true;
}
public static function getRealStr($originStr){
$result=str_replace(array("\r\n", "\r", "\n"), "", $originStr);
$result=trim($result);
return $result;
}
/**
* sql字符串格式化
* @param unknown $phone
......
......@@ -68,6 +68,7 @@ class ApiReciverInfoModel extends \DAO\AbstractModel
public function getReceiverInfo(){
$reciverInfo['mobPhone']=$this->mobPhone;
$reciverInfo['telPhone']=$this->telPhone;
$this->address=Common::getRealStr($this->address);
$reciverInfo['address']=$this->address;
$reciverInfo['areaInfo']=$this->areaInfo;
$reciverInfo['lng']=$this->lng;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment