This commit is contained in:
aozhiwei 2022-02-21 15:23:02 +08:00
parent ebdec56058
commit d89ae88620

View File

@ -15,7 +15,7 @@ class BoxOrder extends BaseModel {
array( array(
':batch_idx' => $batchIdx ':batch_idx' => $batchIdx
)); ));
return $row && $row['sold_num'] ? $row['sold_num'] : 0; return $row && $row['sold_num'] ? (int)$row['sold_num'] : 0;
} }
public function isBuyed($buyerAddress, $batchIdx) public function isBuyed($buyerAddress, $batchIdx)