本文整理汇总了PHP中SoapClient::GetNwVipMaster方法的典型用法代码示例。如果您正苦于以下问题:PHP SoapClient::GetNwVipMaster方法的具体用法?PHP SoapClient::GetNwVipMaster怎么用?PHP SoapClient::GetNwVipMaster使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SoapClient
的用法示例。
在下文中一共展示了SoapClient::GetNwVipMaster方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getnwvipmaster
/**
* CRM API 查用户信息函数封装
* @param type $vipcode vip卡号
* @return list
*/
function getnwvipmaster($vipcode)
{
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->username = C('NWVIP_USERNAME');
$parm->astr_request->header->password = C('NWVIP_PASSWORD');
$parm->astr_request->header->pagerecords = 20;
//每页显示多少条信息
$parm->astr_request->header->pageno = 0;
//当前第几页
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->search->vipcode = $vipcode;
$parm->astr_request->search->fromage = 0;
$parm->astr_request->search->toage = 0;
$parm->astr_request->search->frombirthdaymm = 0;
$parm->astr_request->search->tobirthdaymm = 0;
$parm->astr_request->search->frombirthdaydd = 0;
$parm->astr_request->search->tobirthdaydd = 0;
$parm->astr_request->search->fromcurrentbonus = 0;
$parm->astr_request->search->tocurrentbonus = 0;
$parm->astr_request->search->fromaccumulatedsalesamt = 0;
$parm->astr_request->search->toaccumulatedsalesamt = 0;
$parm->astr_request->search->fromaccumulatedbonus = 0;
$parm->astr_request->search->toaccumulatedbonus = 0;
$parm->astr_request->search->activitycount = 0;
$parm->astr_request->search->salesamount = 0;
$client = new SoapClient(C('NWVIP_SERVICE_URL'), array('trace' => 1, 'exceptions' => 0));
$result = $client->GetNwVipMaster($parm);
return object_to_array($result);
}
示例2: newpassword
public function newpassword()
{
$vipcode = session("vipcode");
$newpassword = $_POST['newpassword'];
if (IS_POST) {
$newpassword = $_POST['newpassword'];
if (empty($newpassword)) {
$this->error("请填写新密码");
}
if (strlen($newpassword) < 6) {
$this->error("请设置6位以上的密码");
}
/**
* api接口
* */
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->username = "website";
$parm->astr_request->header->password = "maps1fa";
$parm->astr_request->header->pagerecords = 20;
//每页显示多少条信息
$parm->astr_request->header->pageno = 0;
//当前第几页
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->search->vipcode = $vipcode;
$parm->astr_request->search->fromage = 0;
$parm->astr_request->search->toage = 0;
$parm->astr_request->search->frombirthdaymm = 0;
$parm->astr_request->search->tobirthdaymm = 0;
$parm->astr_request->search->frombirthdaydd = 0;
$parm->astr_request->search->tobirthdaydd = 0;
$parm->astr_request->search->fromcurrentbonus = 0;
$parm->astr_request->search->tocurrentbonus = 0;
$parm->astr_request->search->fromaccumulatedsalesamt = 0;
$parm->astr_request->search->toaccumulatedsalesamt = 0;
$parm->astr_request->search->fromaccumulatedbonus = 0;
$parm->astr_request->search->toaccumulatedbonus = 0;
$parm->astr_request->search->activitycount = 0;
$parm->astr_request->search->salesamount = 0;
$client = new SoapClient('http://221.133.247.163/VIP_NWBJ_EC/nwvip_ec.asmx?WSDL', array('trace' => 1, 'exceptions' => 0));
$result = $client->GetNwVipMaster($parm);
$list = object_to_array($result);
if (empty($list['getnwvipmasterResult']['vipmasters']['nwvipmaster'])) {
$this->error("vip卡号错误");
}
$parm2 = new StdClass();
$parm2->astr_request = new StdClass();
$parm2->astr_request->header = new StdClass();
$parm2->astr_request->header->licensekey = "";
$parm2->astr_request->header->username = "website";
$parm2->astr_request->header->password = "maps1fa";
$parm2->astr_request->header->lang = '';
//每页显示多少条信息
$parm2->astr_request->header->pagerecords = 100;
//当前第几页
$parm2->astr_request->header->pageno = 1;
$parm2->astr_request->header->updatecount = 1;
$parm2->astr_request->header->messageid = '';
$parm2->astr_request->header->version = '';
$parm2->astr_request->master->vipcode = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['vipcode'];
$parm2->astr_request->master->surname = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['surname'];
$parm2->astr_request->master->currentbonus = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['currentbonus'];
$parm2->astr_request->master->telephone = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['telephone'];
$parm2->astr_request->master->vipemail = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['vipemail'];
$parm2->astr_request->master->address1 = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['address1'];
$parm2->astr_request->master->address2 = '';
$parm2->astr_request->master->address3 = '';
$parm2->astr_request->master->address4 = '';
$parm2->astr_request->master->issuestore = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['issuestore'];
$parm2->astr_request->master->vipid = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['vipid'];
$parm2->astr_request->master->birthdayyyyy = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['birthdayyyyy'];
$parm2->astr_request->master->password = $newpassword;
$parm2->astr_request->master->birthdaymm = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['birthdaymm'];
$parm2->astr_request->master->birthdaydd = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['birthdaydd'];
$parm2->astr_request->master->incomecode = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['incomecode'];
$parm2->astr_request->master->industrycode = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['industrycode'];
$parm2->astr_request->master->emailcontact = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['emailcontact'];
$parm2->astr_request->master->lastmodify_yyyymmdd = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['lastmodify_yyyymmdd'];
$parm2->astr_request->master->lastmodify_hhmmss = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['lastmodify_hhmmss'];
$parm2->astr_request->master->educationcode = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['educationcode'];
$parm2->astr_request->master->givenname = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['givenname'];
$parm2->astr_request->master->telephone2 = '';
$parm2->astr_request->master->maritalstatus = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['maritalstatus'];
$parm2->astr_request->master->sex = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['sex'];
$parm2->astr_request->master->postal = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['postal'];
$parm2->astr_request->master->ismainvip = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['ismainvip'];
$parm2->astr_request->master->vipcardtype = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['vipcardtype'];
$parm2->astr_request->master->modifybystaffcode = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster']['modifybystaffcode'];
$result = $client->postnwvipmasterupdate($parm2);
$this->success("更新成功");
}
if (empty($vipcode)) {
$this->error("错误访问", __ROOT__ . "/");
}
$this->display();
}
示例3: up_memberlist
public function up_memberlist()
{
$vipcode = $_GET['vipcode'];
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->username = "website";
$parm->astr_request->header->password = "maps1fa";
$parm->astr_request->header->pagerecords = 20;
//每页显示多少条信息
$parm->astr_request->header->pageno = 0;
//当前第几页
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->search->vipcode = $vipcode;
$parm->astr_request->search->fromage = 0;
$parm->astr_request->search->toage = 0;
$parm->astr_request->search->frombirthdaymm = 0;
$parm->astr_request->search->tobirthdaymm = 0;
$parm->astr_request->search->frombirthdaydd = 0;
$parm->astr_request->search->tobirthdaydd = 0;
$parm->astr_request->search->fromcurrentbonus = 0;
$parm->astr_request->search->tocurrentbonus = 0;
$parm->astr_request->search->fromaccumulatedsalesamt = 0;
$parm->astr_request->search->toaccumulatedsalesamt = 0;
$parm->astr_request->search->fromaccumulatedbonus = 0;
$parm->astr_request->search->toaccumulatedbonus = 0;
$parm->astr_request->search->activitycount = 0;
$parm->astr_request->search->salesamount = 0;
$client = new SoapClient('http://221.133.247.163/VIP_NWBJ_EC/nwvip_ec.asmx?WSDL', array('trace' => 1, 'exceptions' => 0));
$result = $client->GetNwVipMaster($parm);
$list = object_to_array($result);
$this->assign($list['getnwvipmasterResult']['vipmasters']['nwvipmaster']);
/**
* 查询门店信息
* */
$storeparm = new StdClass();
$storeparm->astr_request = new StdClass();
$storeparm->astr_request->header = new StdClass();
$storeparm->astr_request->header->username = "webservice";
$storeparm->astr_request->header->password = "Mapsal11ca";
$storeparm->astr_request->header->pagerecords = 100;
//每页显示多少条信息
$storeparm->astr_request->header->pageno = 1;
//当前第几页
$storeparm->astr_request->header->updatecount = 1;
$storeparm->astr_request->search->fromage = 0;
$storeparm->astr_request->search->toage = 0;
$storeresult = $client->GetNwVipStoreMaster($storeparm);
$storelist = object_to_array($storeresult);
$this->assign("storelist", $storelist['getnwvipstoremasterResult']['vipstoremasters']['nwvipstoremaster']);
$this->display();
}
示例4: center
/**
* 个人资料
* */
public function center()
{
if (IS_POST) {
$shengri = $_POST['shengri'];
$str = explode("-", $shengri);
$client = new SoapClient('http://221.133.247.163/VIP_NWBJ_EC/nwvip_ec.asmx?WSDL', array('trace' => 1, 'exceptions' => 0));
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->licensekey = "";
$parm->astr_request->header->username = "website";
$parm->astr_request->header->password = "maps1fa";
$parm->astr_request->header->lang = '';
//每页显示多少条信息
$parm->astr_request->header->pagerecords = 100;
//当前第几页
$parm->astr_request->header->pageno = 1;
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->header->messageid = '';
$parm->astr_request->header->version = '';
$parm->astr_request->master->vipcode = $_POST['vipcode'];
$parm->astr_request->master->surname = $_POST['surname'];
$parm->astr_request->master->currentbonus = $_POST['currentbonus'];
$parm->astr_request->master->telephone = $_POST['telephone'];
$parm->astr_request->master->vipemail = $_POST['vipemail'];
$parm->astr_request->master->address1 = $_POST['address1'];
$parm->astr_request->master->address2 = '';
$parm->astr_request->master->address3 = '';
$parm->astr_request->master->address4 = '';
$parm->astr_request->master->issuestore = $_POST['issuestore'];
$parm->astr_request->master->vipid = $_POST['vipid'];
$parm->astr_request->master->birthdayyyyy = $str[0];
$parm->astr_request->master->birthdaymm = $str[1];
$parm->astr_request->master->birthdaydd = $str[2];
$parm->astr_request->master->incomecode = $_POST['incomecode'];
$parm->astr_request->master->industrycode = $_POST['industrycode'];
$parm->astr_request->master->emailcontact = $_POST['emailcontact'];
$parm->astr_request->master->lastmodify_yyyymmdd = $_POST['lastmodify_yyyymmdd'];
$parm->astr_request->master->lastmodify_hhmmss = $_POST['lastmodify_hhmmss'];
$parm->astr_request->master->educationcode = $_POST['educationcode'];
$parm->astr_request->master->givenname = $_POST['givenname'];
$parm->astr_request->master->telephone2 = '';
$parm->astr_request->master->maritalstatus = $_POST['maritalstatus'];
$parm->astr_request->master->sex = $_POST['sex'];
$parm->astr_request->master->postal = $_POST['postal'];
$parm->astr_request->master->ismainvip = $_POST['ismainvip'];
$parm->astr_request->master->vipcardtype = $_POST['vipcardtype'];
$parm->astr_request->master->modifybystaffcode = $_POST['modifybystaffcode'];
$result = $client->postnwvipmasterupdate($parm);
$this->success("更新成功", __URL__ . "/center");
}
$user = session("user");
$vipcode = $user['vipcode'];
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->username = "website";
$parm->astr_request->header->password = "maps1fa";
$parm->astr_request->header->pagerecords = 20;
//每页显示多少条信息
$parm->astr_request->header->pageno = 0;
//当前第几页
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->search->vipcode = $vipcode;
$parm->astr_request->search->fromage = 0;
$parm->astr_request->search->toage = 0;
$parm->astr_request->search->frombirthdaymm = 0;
$parm->astr_request->search->tobirthdaymm = 0;
$parm->astr_request->search->frombirthdaydd = 0;
$parm->astr_request->search->tobirthdaydd = 0;
$parm->astr_request->search->fromcurrentbonus = 0;
$parm->astr_request->search->tocurrentbonus = 0;
$parm->astr_request->search->fromaccumulatedsalesamt = 0;
$parm->astr_request->search->toaccumulatedsalesamt = 0;
$parm->astr_request->search->fromaccumulatedbonus = 0;
$parm->astr_request->search->toaccumulatedbonus = 0;
$parm->astr_request->search->activitycount = 0;
$parm->astr_request->search->salesamount = 0;
$client = new SoapClient('http://221.133.247.163/VIP_NWBJ_EC/nwvip_ec.asmx?WSDL', array('trace' => 1, 'exceptions' => 0));
$result = $client->GetNwVipMaster($parm);
$list = object_to_array($result);
$this->assign($list['getnwvipmasterResult']['vipmasters']['nwvipmaster']);
$upkey = $_GET['upkey'];
$this->assign("upkey", $upkey);
$this->display();
}
示例5: member
public function member($vipcode)
{
$parm = new StdClass();
$parm->astr_request = new StdClass();
$parm->astr_request->header = new StdClass();
$parm->astr_request->header->username = "website";
$parm->astr_request->header->password = "maps1fa";
$parm->astr_request->header->pagerecords = 20;
//每页显示多少条信息
$parm->astr_request->header->pageno = 1;
//当前第几页
$parm->astr_request->header->updatecount = 1;
$parm->astr_request->search->vipcode = $vipcode;
$parm->astr_request->search->fromage = 0;
$parm->astr_request->search->toage = 0;
$parm->astr_request->search->frombirthdaymm = 0;
$parm->astr_request->search->tobirthdaymm = 0;
$parm->astr_request->search->frombirthdaydd = 0;
$parm->astr_request->search->tobirthdaydd = 0;
$parm->astr_request->search->fromcurrentbonus = 0;
$parm->astr_request->search->tocurrentbonus = 0;
$parm->astr_request->search->fromaccumulatedsalesamt = 0;
$parm->astr_request->search->toaccumulatedsalesamt = 0;
$parm->astr_request->search->fromaccumulatedbonus = 0;
$parm->astr_request->search->toaccumulatedbonus = 0;
$parm->astr_request->search->activitycount = 0;
$parm->astr_request->search->salesamount = 0;
$client = new SoapClient('http://221.133.247.163/VIP_NWBJ_EC/nwvip_ec.asmx?WSDL', array('trace' => 1, 'exceptions' => 0));
$result = $client->GetNwVipMaster($parm);
$list = object_to_array($result);
$list = $list['getnwvipmasterResult']['vipmasters']['nwvipmaster'];
return $list;
}