拉卡拉支付参数优化,订单增加拉卡拉支付(进行中)
This commit is contained in:
parent
62bbef0ed2
commit
d88aeb6621
@ -76,10 +76,11 @@ class Demo extends Api
|
|||||||
// $request->setPnrInsIdCd('');
|
// $request->setPnrInsIdCd('');
|
||||||
|
|
||||||
// 微信主扫场景 - 账户端业务信息
|
// 微信主扫场景 - 账户端业务信息
|
||||||
$acc_busi_fields = new \Lakala\OpenAPISDK\V3\Model\TradePreorderWechaAccBusiFields();
|
$acc_busi_fields = $lakala->getTradePreorderWechaAccBusiFields('ohjUL7XWERU9rDfeNdvbxxil8jZY');
|
||||||
|
|
||||||
// $acc_busi_fields->setTimeoutExpress('');
|
// $acc_busi_fields->setTimeoutExpress('');
|
||||||
$acc_busi_fields->setSubAppid('wxd7e2deffbaa22254');
|
// $acc_busi_fields->setSubAppid('wxd7e2deffbaa22254');
|
||||||
$acc_busi_fields->setUserId('ohjUL7XWERU9rDfeNdvbxxil8jZY');
|
// $acc_busi_fields->setUserId('ohjUL7XWERU9rDfeNdvbxxil8jZY');
|
||||||
// $acc_busi_fields->setDetail('');
|
// $acc_busi_fields->setDetail('');
|
||||||
// $acc_busi_fields->setGoodsTag('');
|
// $acc_busi_fields->setGoodsTag('');
|
||||||
// $acc_busi_fields->setAttach('');
|
// $acc_busi_fields->setAttach('');
|
||||||
@ -92,12 +93,12 @@ class Demo extends Api
|
|||||||
// $detail->setCostPrice('1.00');
|
// $detail->setCostPrice('1.00');
|
||||||
// $detail->setReceiptId('');
|
// $detail->setReceiptId('');
|
||||||
|
|
||||||
$goods_detail = new \Lakala\OpenAPISDK\V3\Model\TradePreorderWechaGoodsDetail;
|
// $goods_detail = new \Lakala\OpenAPISDK\V3\Model\TradePreorderWechaGoodsDetail;
|
||||||
$goods_detail->setGoodsId('3452234');
|
// $goods_detail->setGoodsId('3452234');
|
||||||
// $goods_detail->setWxpayGoodsId('');
|
//// $goods_detail->setWxpayGoodsId('');
|
||||||
// $goods_detail->setGoodsName('测试商品1');
|
//// $goods_detail->setGoodsName('测试商品1');
|
||||||
$goods_detail->setQuantity(1.0);
|
// $goods_detail->setQuantity(1.0);
|
||||||
$goods_detail->setPrice(1.0);
|
// $goods_detail->setPrice(1.0);
|
||||||
|
|
||||||
// $detail->setGoodsDetail([$goods_detail]);
|
// $detail->setGoodsDetail([$goods_detail]);
|
||||||
//
|
//
|
||||||
|
@ -204,7 +204,7 @@ class NewActivity extends Base
|
|||||||
try {
|
try {
|
||||||
$res = $this->model->detail($id,$user_id);
|
$res = $this->model->detail($id,$user_id);
|
||||||
|
|
||||||
file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($res).PHP_EOL,FILE_APPEND);
|
// file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($res).PHP_EOL,FILE_APPEND);
|
||||||
|
|
||||||
} catch (\Exception $e){
|
} catch (\Exception $e){
|
||||||
// Log::log($e->getMessage());
|
// Log::log($e->getMessage());
|
||||||
@ -274,7 +274,7 @@ class NewActivity extends Base
|
|||||||
public function add(){
|
public function add(){
|
||||||
|
|
||||||
$this->transactionCheck();
|
$this->transactionCheck();
|
||||||
file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($this->request->post()).PHP_EOL,FILE_APPEND);
|
// file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($this->request->post()).PHP_EOL,FILE_APPEND);
|
||||||
|
|
||||||
|
|
||||||
//敏感词过滤
|
//敏感词过滤
|
||||||
@ -361,7 +361,7 @@ class NewActivity extends Base
|
|||||||
public function edit($ids = null){
|
public function edit($ids = null){
|
||||||
if(!$ids) $ids = $this->request->post('ids/d', 0);
|
if(!$ids) $ids = $this->request->post('ids/d', 0);
|
||||||
|
|
||||||
file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($this->request->post()).PHP_EOL,FILE_APPEND);
|
// file_put_contents('activity'.date('Y_m_d').'.log',date('Y-m-d H:i:s')." ".json_encode($this->request->post()).PHP_EOL,FILE_APPEND);
|
||||||
|
|
||||||
|
|
||||||
$this->transactionCheck();
|
$this->transactionCheck();
|
||||||
|
@ -1249,7 +1249,7 @@ class Activity extends BaseModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$self["activity_pay_process"] = config("site.activity_pay_process");
|
||||||
|
|
||||||
$self["return_50"] = $return_50;
|
$self["return_50"] = $return_50;
|
||||||
$self["last_time"] = $self["after_sales_time"] ?: $self["end_time"] + config("site.activity_end_sales");
|
$self["last_time"] = $self["after_sales_time"] ?: $self["end_time"] + config("site.activity_end_sales");
|
||||||
|
@ -545,6 +545,8 @@ class Order extends BaseModel
|
|||||||
|
|
||||||
$data['refund_desc'] = (new Activity)->refund_desc(0,$data["id"]);
|
$data['refund_desc'] = (new Activity)->refund_desc(0,$data["id"]);
|
||||||
|
|
||||||
|
$data["activity_pay_process"] = config("site.activity_pay_process");
|
||||||
|
|
||||||
//开票信息
|
//开票信息
|
||||||
$data->invoiceaplpy;
|
$data->invoiceaplpy;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class LakalaService
|
|||||||
private $host_test = 'https://test.wsmsd.cn/sit';
|
private $host_test = 'https://test.wsmsd.cn/sit';
|
||||||
|
|
||||||
|
|
||||||
|
private $v3_acc_busi_fields = null;
|
||||||
|
|
||||||
|
|
||||||
public function getClientIp()
|
public function getClientIp()
|
||||||
@ -53,6 +53,8 @@ class LakalaService
|
|||||||
|
|
||||||
$this->plantform_data["lakala_apply_name"] = $site["lakala_apply_name"];
|
$this->plantform_data["lakala_apply_name"] = $site["lakala_apply_name"];
|
||||||
|
|
||||||
|
$this->plantform_data["wx_miniapp_id"] = config("site.wx_miniapp_id");
|
||||||
|
|
||||||
if(config("site.lakala_test_switch")){
|
if(config("site.lakala_test_switch")){
|
||||||
$this->plantform_data["lakala_partner_id"] = $site["test_lakala_partner_id"];
|
$this->plantform_data["lakala_partner_id"] = $site["test_lakala_partner_id"];
|
||||||
|
|
||||||
@ -119,4 +121,20 @@ class LakalaService
|
|||||||
return $api;
|
return $api;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setTradePreorderWechaAccBusiFields($open_id=""){
|
||||||
|
$this->v3_acc_busi_fields = new \Lakala\OpenAPISDK\V3\Model\TradePreorderWechaAccBusiFields();
|
||||||
|
// $acc_busi_fields->setTimeoutExpress('');
|
||||||
|
|
||||||
|
|
||||||
|
$this->v3_acc_busi_fields->setSubAppid($this->plantform_data["wx_miniapp_id"]);
|
||||||
|
if($open_id)$this->v3_acc_busi_fields->setUserId($open_id);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
public function getTradePreorderWechaAccBusiFields($open_id=""){
|
||||||
|
$this->setTradePreorderWechaAccBusiFields($open_id);
|
||||||
|
return $this->v3_acc_busi_fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user