lqmac 1 year ago
parent eeee1159d1
commit 6e5ebffa14
  1. 5
      application/api/controller/Order.php
  2. 5
      application/api/controller/User.php

@ -355,6 +355,11 @@ class Order extends Api
if ($order_goods) { if ($order_goods) {
foreach ($order_goods as $key => $value) { foreach ($order_goods as $key => $value) {
$value['goods_image'] = cdnurl($value['goods_image'], true); $value['goods_image'] = cdnurl($value['goods_image'], true);
if ($item['status'] == 7) {
$value['goods_price'] = $value['commission_price'];
$item['pay_amount'] = $value['commission_price'];
$item['order_amount'] = $value['commission_price'];
}
} }
} }

@ -63,9 +63,10 @@ class User extends Api
if (!$account || !$password) { if (!$account || !$password) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
$site = Config::get("site");
$config = [ $config = [
'app_id' => 'wx183e3fbc925f1ba3', 'app_id' => $site['wx_appid'],
'secret' => 'b3e26edaa7642673dd98a951564e02c7', 'secret' => $site['wx_secrect'],
// 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
'response_type' => 'array', 'response_type' => 'array',
]; ];

Loading…
Cancel
Save