1
This commit is contained in:
parent
3f42f39352
commit
effbf3122e
@ -370,7 +370,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
public function buyMallProduct()
|
||||
{
|
||||
$address = myself()-_getAddress();
|
||||
if (!$address) {
|
||||
if (empty($address)) {
|
||||
myself()-_rspErr(1, 'address not found');
|
||||
return;
|
||||
}
|
||||
@ -391,9 +391,8 @@ class BlockChainController extends BaseAuthedController {
|
||||
myself()-_rspErr(1, 'goods not found, idx:');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($price != $goodsDb['price']) {
|
||||
myself()-_rspErr(1, 'price not match, idx:');
|
||||
if ($goodsDb['status'] != Mall::PENDING_STATE) {
|
||||
myself()-_rspErr(1, 'cant buy');
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user