Compare commits

...

3 Commits

Author SHA1 Message Date
ch4o5
bda7e57f39 chore(release): 1.0.0-alpha.1 2023-07-25 09:06:06 +00:00
李东云
8381195df4 build(release): 增加预发布版本的 flag 2023-07-25 17:05:57 +08:00
李东云
9052dc2d43 fix(goods): 修复类型错误的问题 2023-07-25 17:04:41 +08:00
5 changed files with 17 additions and 4 deletions

View File

@@ -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)

View File

@@ -60,5 +60,5 @@
"url": "https://mirrors.cloud.tencent.com/composer/"
}
},
"version": "1.0.0-alpha.0"
"version": "1.0.0-alpha.1"
}

View File

@@ -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

View File

@@ -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']))
];
}

View File

@@ -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));
}
}