multi-store/app/admin/controller/IndexController.php
mkm ffb57636ef refactor(xlsx): 优化 Excel 导出模板并添加退货政策说明
- 修改了多个 Excel 导出模板的列结构和样式
- 在出库供货单模板中添加了退货政策说明内容
- 调整了部分字段的显示位置和格式
2025-01-23 11:40:48 +08:00

40 lines
994 B
PHP

<?php
namespace app\admin\controller;
use app\api\logic\DemoLogic;
use app\common\service\pay\PayService;
class IndexController extends BaseAdminController
{
/**
* @notes 查询订单支付状态
*/
public function wechatQuery()
{
$order_no = $this->request->get('order_no');
$order = [
'out_trade_no' => $order_no,
];
$app = new PayService(0);
try {
$res = $app->wechat->query($order);
return $this->success('查询成功', $res->toArray());
} catch (\Exception $e) {
return $this->fail($e->extra['message']);
}
}
public function demo2()
{
$res=DemoLogic::test();
return $this->success('成功');
}
public function demo3()
{
$id=$this->request->get('id');
$warehouse_id=$this->request->get('warehouse_id',1);
$res=DemoLogic::test3($id,$warehouse_id);
return $this->success('成功');
}
}