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