|
@@ -14,7 +14,12 @@ class BookService
|
|
|
{
|
|
|
public static function decodeBidStatic(string $bid)
|
|
|
{
|
|
|
- return Hashids::decode($bid)[0];
|
|
|
+ $decodeBid = Hashids::decode($bid);
|
|
|
+ $decodeBid = is_array($decodeBid) ? array_shift($decodeBid) : $decodeBid;
|
|
|
+ if(empty($decodeBid)){
|
|
|
+ myLog("QappBookBidDecodeError")->info("bid : {$bid}, decodeBid : ".var_export($decodeBid,true));
|
|
|
+ }
|
|
|
+ return intval($decodeBid);
|
|
|
}
|
|
|
|
|
|
/**
|