|
|
@@ -467,13 +467,25 @@ class ShopController extends BaseController {
|
|
|
$message = '(ReQueryIPay88Payment). orderSN{%s} 00: Successful payment';
|
|
|
break;
|
|
|
case 'Invalid parameters':
|
|
|
+ ApproachOrder::updateAll(
|
|
|
+ ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Invalid parameters: Parameters pass in incorrect'],
|
|
|
+ 'SN=:SN', [':SN' => $order['SN']]
|
|
|
+ );
|
|
|
$message = '(ReQueryIPay88Payment). orderSN{%s} Invalid parameters: Parameters pass in incorrect';
|
|
|
break;
|
|
|
case 'Record not found':
|
|
|
+ ApproachOrder::updateAll(
|
|
|
+ ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Record not found: Cannot found the record'],
|
|
|
+ 'SN=:SN', [':SN' => $order['SN']]
|
|
|
+ );
|
|
|
$message = '(ReQueryIPay88Payment). orderSN{%s} Record not found: Cannot found the record';
|
|
|
break;
|
|
|
case 'Incorrect amount':
|
|
|
$message = '(ReQueryIPay88Payment). orderSN{%s} Incorrect amount: Amount different';
|
|
|
+ ApproachOrder::updateAll(
|
|
|
+ ['STATUS' => \Yii::$app->params['orderStatus']['failPaid']['value'], 'REMARK' => 'Incorrect amount: Amount different'],
|
|
|
+ 'SN=:SN', [':SN' => $order['SN']]
|
|
|
+ );
|
|
|
break;
|
|
|
case 'Payment fail':
|
|
|
ApproachOrder::updateAll(
|