Skip to content

Commit

Permalink
Update Card.php (#562)
Browse files Browse the repository at this point in the history
如果没有修改base_info,不需要向接口提交这个字段,如果提交了反而无法通过校验
  • Loading branch information
xleliu authored and overtrue committed Jan 4, 2017
1 parent e75dba2 commit 8a4e1db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Card/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ public function update($cardId, $type, $baseInfo = [], $especial = [])
$card[$type] = [];

$cardInfo = [];
$cardInfo['base_info'] = $baseInfo;
if ($baseInfo) {
$cardInfo['base_info'] = $baseInfo;
}

$card[$type] = array_merge($cardInfo, $especial);

Expand Down

0 comments on commit 8a4e1db

Please sign in to comment.