Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct(Arr::only($attributes, $this->properties));
 }
Exemplo n.º 2
0
 /**
  * 更新子商户.
  *
  * @param int   $merchantId
  * @param array $info
  *
  * @return array
  */
 public function updateSubMerchant($merchantId, array $info = [])
 {
     $params = ['info' => array_merge(['merchant_id' => $merchantId], Arr::only($info, ['brand_name', 'logo_url', 'protocol', 'end_time', 'primary_category_id', 'secondary_category_id', 'agreement_media_id', 'operator_media_id', 'app_id']))];
     return $this->parseJSON('json', [self::API_UPDATE_SUB_MERCHANT, $params]);
 }