예제 #1
0
 /**
  * Update the counter associated with a token
  * Return -1 if the counter is <0 and >999
  *
  * @return Response
  */
 public function updateCounter($token, $counter)
 {
     $retval = [];
     $retval['code'] = -1;
     if ($counter < 0 || $counter > 999) {
         return $retval;
     }
     $vendor = new Vendor();
     $retval = $vendor->updateCounter($token, $counter);
     return $retval;
 }