Ai
1 Star 0 Fork 0

鱼子/微信自定义组件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
鱼子 提交于 2021-12-07 10:59 +08:00 . 完善自定义版API
<?php
require 'vendor\autoload.php';
$config = require 'config\weshop.php';
$sss = \sffi\weshop\Factory::shop_account($config);
$res = $sss->reqGetBrandList();
var_dump($res);
$order = \sffi\weshop\Factory::shop_spu($config);
$skus = [];
$skus[] = new \sffi\weshop\Shop\Entity\Sku('1', '1', '', 1, 1, 10, '1000086', '0', []);
$product = new \sffi\weshop\Shop\Entity\ProductInfo('1','商品1', [], '份', [],new \sffi\weshop\Shop\Entity\DescInfo(), 430011, 0,);
print_r($order->reqAdd($product));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rui_ng/wechat-custom-component.git
git@gitee.com:rui_ng/wechat-custom-component.git
rui_ng
wechat-custom-component
微信自定义组件
v0.02.9

搜索帮助