Skip to content

Commit

Permalink
Release version 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongxuongminh committed Nov 12, 2018
1 parent e9c37ac commit 7b992a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.3

Fixed: `yiiviet\esms\RequestData` wrong param check `Sandbox` environment (vuongxuongminh)

# 1.0.2

Enh: Upgrade version of depends package `vxm/yii2-gateway-clients` to `2.0.0` (vuongxuongminh)
2 changes: 1 addition & 1 deletion src/RequestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function ensureAttributes(array &$attributes)
if ($command === Gateway::RC_SEND_SMS) {
$attributes['SmsType'] = $attributes['SmsType'] ?? 4;
$attributes['IsUnicode'] = $attributes['IsUnicode'] ?? 1;
$attributes['Sandbox'] = $attributes['IsUnicode'] ?? 0;
$attributes['Sandbox'] = $attributes['Sandbox'] ?? 0;

if ($attributes['SmsType'] === 1 || $attributes['SmsType'] === 2) {
$this->addRule(['Brandname'], 'required', ['on' => $command]);
Expand Down

0 comments on commit 7b992a6

Please sign in to comment.