|
|
@@ -50,8 +50,8 @@ class PurchaseController extends BaseController
|
|
|
public function actionDebtPay()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
- $id = $get['id'] ?? 0;
|
|
|
- $info = PurchaseClass::getInfo($id);
|
|
|
+ $orderSn = $get['orderSn'] ?? 0;
|
|
|
+ $info = PurchaseClass::getByCondition(['orderSn' => $orderSn]);
|
|
|
PurchaseClass::valid($info, $this->shopId);
|
|
|
PurchaseClass::debt($info);
|
|
|
util::complete();
|