Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #36 from oneyzh/patch-1
Browse files Browse the repository at this point in the history
Update OrderQueryModel.php
  • Loading branch information
flutterbest authored Jun 29, 2020
2 parents f6e0d29 + e1dc32c commit 134f26b
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/vip/request/OrderQueryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class OrderQueryModel {
public $requestId = null;
public $updateTimeStart = null;
public $updateTimeEnd = null;
public $orderSnList = null;

public function __construct($vals=null){

Expand Down Expand Up @@ -51,6 +52,9 @@ public function __construct($vals=null){
8 => array(
'var' => 'updateTimeEnd'
),
9 => array(
'var' => 'orderSnList'
),

);

Expand Down Expand Up @@ -106,6 +110,11 @@ public function __construct($vals=null){
$this->updateTimeEnd = $vals['updateTimeEnd'];
}

if (isset($vals['orderSnList'])){

$this->orderSnList = $vals['orderSnList'];
}


}

Expand Down Expand Up @@ -205,6 +214,33 @@ public function read($input){
}


if ("orderSnList" == $schemeField){

$needSkip = false;

$this->orderSnList = array();
$_size0 = 0;
$input->readListBegin();
while(true){

try{

$elem0 = null;
$input->readString($elem0);

$this->orderSnList[$_size0++] = $elem0;
}
catch(\Exception $e){

break;
}
}

$input->readListEnd();

}



if($needSkip){

Expand Down Expand Up @@ -289,6 +325,28 @@ public function write($output){
}


if($this->orderSnList !== null) {

$xfer += $output->writeFieldBegin('orderSnList');

if (!is_array($this->orderSnList)){

throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
}

$output->writeListBegin();
foreach ($this->orderSnList as $iter0){

$xfer += $output->writeString($iter0);

}

$output->writeListEnd();

$xfer += $output->writeFieldEnd();
}


$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
Expand Down

0 comments on commit 134f26b

Please sign in to comment.