nbsp; $companyid = intval($sarr[1]);
}
if (!$mobile) {
$companyWhere = array();
$companyWhere['token'] = $token;
if ($companyid) {
$companyWhere['id'] = $companyid;
}
$company = M('Company')->where($companyWhere)->find();
$mobile = $company['mp'];
}
//
$thisWxUser = M('Wxuser')->where(array('token' => Sms::_safe_replace($token)))->find();
$thisUser = M('Users')->where(array('id' => $thisWxUser['uid']))->find();
if ($token == 'admin') {
$thisUser = array('id'=>0);
$thisWxUser = array('uid' => 0,'token' => $this->token);
}
$get_url="'http://jiekou.56dxw.com/sms/HttpInterfaceMore.aspx?username=".trim(C('config.sms_name'))."&userpwd=".md5(trim(C('config.sms_