Skip to content

Commit

Permalink
生成 js添加到卡包接口 增加fixed_begintimestamp、outer_str字段 (#602)
Browse files Browse the repository at this point in the history
fixed_begintimestamp:卡券在第三方系统的实际领取时间,为东八区时间戳(UTC+8,精确到秒)。当卡券的有效期类型为DATE_TYPE_FIX_TERM时专用,标识卡券的实际生效时间,用于解决商户系统内起始时间和领取时间不同步的问题。
outer_str:领取渠道参数,用于标识本次领取的渠道值。
  • Loading branch information
gychg authored and overtrue committed Mar 3, 2017
1 parent 61e0c13 commit 6c9961e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Card/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ public function attachExtension($cardId, array $extension = [])
'timestamp' => $timestamp,
'outer_id' => Arr::get($extension, 'outer_id'),
'balance' => Arr::get($extension, 'balance'),
'fixed_begintimestamp' => Arr::get($extension, 'fixed_begintimestamp'),
'outer_str' => Arr::get($extension, 'outer_str'),
];
$ext['signature'] = $this->getSignature(
$this->getAPITicket(),
Expand Down

0 comments on commit 6c9961e

Please sign in to comment.