|
|
@ -13,9 +13,7 @@ declare (strict_types=1); |
|
|
|
namespace app\api\controller; |
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
|
|
use app\common\enum\RecoveryStatusEnum; |
|
|
|
use app\common\enum\RecoveryStatusEnum; |
|
|
|
use app\common\library\wechat\ShortLink; |
|
|
|
|
|
|
|
use app\common\model\UploadFile; |
|
|
|
use app\common\model\UploadFile; |
|
|
|
use app\common\model\wxapp\Setting as WxappSettingModel; |
|
|
|
|
|
|
|
use app\store\model\Article as ArticleModel; |
|
|
|
use app\store\model\Article as ArticleModel; |
|
|
|
use app\store\model\article\Category as CategoryModel; |
|
|
|
use app\store\model\article\Category as CategoryModel; |
|
|
|
use app\store\model\dealer\Order as DealerOrderModel; |
|
|
|
use app\store\model\dealer\Order as DealerOrderModel; |
|
|
@ -195,11 +193,6 @@ class StoreKeeper extends Controller |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$model = new OrderModel; |
|
|
|
$model = new OrderModel; |
|
|
|
$store_id = OrderModel::$storeId; |
|
|
|
|
|
|
|
// 小程序配置信息 |
|
|
|
|
|
|
|
$wxConfig = WxappSettingModel::getConfigBasic($store_id); |
|
|
|
|
|
|
|
// 请求api获取短连接 |
|
|
|
|
|
|
|
$link_obj = new ShortLink($wxConfig['app_id'], $wxConfig['app_secret']); |
|
|
|
|
|
|
|
$list = $model->getNewList($params); |
|
|
|
$list = $model->getNewList($params); |
|
|
|
if (!empty($list['data'])) { |
|
|
|
if (!empty($list['data'])) { |
|
|
|
foreach ($list['data'] as $key => $value) { |
|
|
|
foreach ($list['data'] as $key => $value) { |
|
|
@ -227,7 +220,6 @@ class StoreKeeper extends Controller |
|
|
|
$copy_text .= "单价:{$good['goods_price']}\n"; |
|
|
|
$copy_text .= "单价:{$good['goods_price']}\n"; |
|
|
|
$copy_text .= "数量:{$good['total_num']}\n"; |
|
|
|
$copy_text .= "数量:{$good['total_num']}\n"; |
|
|
|
$copy_text .= "总价:{$good['total_price']}\n"; |
|
|
|
$copy_text .= "总价:{$good['total_price']}\n"; |
|
|
|
$copy_text .= "商品链接:" . $link_obj->shortUrl("/pages/goods/detail?goodsId=" . $good['goods_id'], '商品详情'); |
|
|
|
|
|
|
|
$copy_text .= "\n"; |
|
|
|
$copy_text .= "\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!empty($value['address'])) { |
|
|
|
if (!empty($value['address'])) { |
|
|
|