mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 07:35:09 +08:00
Compare commits
3 Commits
v1.0.0-alp
...
v1.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bda7e57f39 | ||
|
|
8381195df4 | ||
|
|
9052dc2d43 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,4 +1,16 @@
|
||||
# 版本更新日志
|
||||
## [1.0.0-alpha.1](http://124.126.16.154:8888/singularity/hdk-pay/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2023-07-25)
|
||||
|
||||
|
||||
### 🐛 Bug Fixes | Bug 修复
|
||||
|
||||
* **goods:** 修复类型错误的问题 ([9052dc2](http://124.126.16.154:8888/singularity/hdk-pay/commit/9052dc2d4347f806d5c4b1705d163522e719ef31))
|
||||
|
||||
|
||||
### 📦 Build System | 打包构建
|
||||
|
||||
* **release:** 增加预发布版本的 flag ([8381195](http://124.126.16.154:8888/singularity/hdk-pay/commit/8381195df4f12931802eda17555c481dfcb11f17))
|
||||
|
||||
## 1.0.0-alpha.0 (2023-07-25)
|
||||
|
||||
|
||||
|
||||
@@ -60,5 +60,5 @@
|
||||
"url": "https://mirrors.cloud.tencent.com/composer/"
|
||||
}
|
||||
},
|
||||
"version": "1.0.0-alpha.0"
|
||||
"version": "1.0.0-alpha.1"
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
docker run --rm -it \
|
||||
-v $(pwd):/app -e "GIT_AUTHOR_NAME=ch4o5" -e "EMAIL=dongyun.li@luxcreo.ai" \
|
||||
detouched/standard-version:latest $1
|
||||
detouched/standard-version:latest -p=alpha $1
|
||||
|
||||
@@ -12,6 +12,7 @@ declare(strict_types=1);
|
||||
namespace Singularity\HDK\Pay\Resource;
|
||||
|
||||
use Hyperf\Resource\Json\JsonResource;
|
||||
use Money\Currency;
|
||||
use Money\Money;
|
||||
|
||||
/**
|
||||
@@ -39,7 +40,7 @@ final class Goods extends JsonResource
|
||||
'id' => $this->id,
|
||||
'goodsName' => $this->goodsName,
|
||||
'goodsSpec' => $this->goodsSpec,
|
||||
'amount' => new Money($this->amount['price'], $this->amount['currency'])
|
||||
'amount' => new Money($this->amount['price'], new Currency($this->amount['currency']))
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,6 @@ final class GoodsRpc
|
||||
|
||||
$response = $this->requestService->requestGet("/rpc/v1/goods/$goodsId/search", $specifies);
|
||||
$content = $response->getBody()->getContents();
|
||||
return Goods::make(Json::decode($content, false));
|
||||
return Goods::make(Json::decode($content));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user