|
@@ -34,14 +34,14 @@ class Order extends Controller
|
|
|
{
|
|
|
parent::initialize();
|
|
|
$this->payments = PaymentService::getTypeAll();
|
|
|
- dump($this->payments);
|
|
|
- // 读取支付通道配置
|
|
|
- $query = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0]);
|
|
|
- //$query->whereIn('code', str2arr($payments))->whereIn('type', PaymentService::getTypeApi($this->type));
|
|
|
- $result = $query->order('sort desc,id desc')->column('type,code,name,cover,content,remark', 'code');
|
|
|
- foreach ($result as &$vo) $vo['content'] = ['voucher_qrcode' => json_decode($vo['content'])->voucher_qrcode ?? ''];
|
|
|
- $this->payments2 = array_values($result);
|
|
|
- dump($this->payments2);
|
|
|
+// dump($this->payments);
|
|
|
+// // 读取支付通道配置
|
|
|
+// $query = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0]);
|
|
|
+// //$query->whereIn('code', str2arr($payments))->whereIn('type', PaymentService::getTypeApi($this->type));
|
|
|
+// $result = $query->order('sort desc,id desc')->column('type,code,name,cover,content,remark', 'code');
|
|
|
+// foreach ($result as &$vo) $vo['content'] = ['voucher_qrcode' => json_decode($vo['content'])->voucher_qrcode ?? ''];
|
|
|
+// $this->payments2 = array_values($result);
|
|
|
+// dump($this->payments2);
|
|
|
}
|
|
|
|
|
|
/**
|