commit
4107700a3b
@ -1491,6 +1491,12 @@ class StoreOrderRepository extends BaseRepository
|
||||
]
|
||||
);
|
||||
if (!$res) throw new ValidateException('数据不存在');
|
||||
if(in_array($res['source'],[13])){
|
||||
$res['bank_info']=Db::name('merchant_intention')->where('status',1)->where('uid',$res['uid'])->field('company_name,bank_username,bank_opening,bank_code')->find();
|
||||
}else{
|
||||
$res['bank_info']=[];
|
||||
}
|
||||
|
||||
$res['integral'] = (int)$res['integral'];
|
||||
return $res->append(['refund_extension_one', 'refund_extension_two']);
|
||||
}
|
||||
|
@ -201,42 +201,7 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
$order->transaction_id = $subOrders[$order->order_sn]['transaction_id'];
|
||||
}
|
||||
$presell = false;
|
||||
//todo 等待付尾款
|
||||
if ($order->activity_type == 2) {
|
||||
$_make = app()->make(ProductPresellSkuRepository::class);
|
||||
if ($order->orderProduct[0]['cart_info']['productPresell']['presell_type'] == 2) {
|
||||
$order->status = 10;
|
||||
$presell = true;
|
||||
} else {
|
||||
$_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'two_pay');
|
||||
}
|
||||
$_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'one_pay');
|
||||
} else if ($order->activity_type == 4) {
|
||||
$order->status = 9;
|
||||
$order->save();
|
||||
$group_buying_id = app()->make(ProductGroupBuyingRepository::class)->create(
|
||||
$groupOrder->user,
|
||||
$order->orderProduct[0]['cart_info']['activeSku']['product_group_id'],
|
||||
$order->orderProduct[0]['activity_id'],
|
||||
$order->order_id
|
||||
);
|
||||
$order->orderProduct[0]->activity_id = $group_buying_id;
|
||||
$order->orderProduct[0]->save();
|
||||
} else if ($order->activity_type == 3) {
|
||||
//更新助力状态
|
||||
app()->make(ProductAssistSetRepository::class)->changStatus($order->orderProduct[0]['activity_id']);
|
||||
}
|
||||
|
||||
//更新委托订单处理
|
||||
if ($order->activity_type == 99) {
|
||||
$cartIdArray = explode(',', $order->cart_id);
|
||||
$ecartList = Db::name('store_cart')->whereIn('cart_id', $cartIdArray)->select();
|
||||
foreach ($ecartList as $ecart) {
|
||||
if (!empty($ecart['source_id'])) {
|
||||
Db::name('community')->where('community_id', $ecart['source_id'])->update(['entrust_order_id' => $order->order_id ?? 0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 订单的类型 0 发货 1 自提
|
||||
if ($order->order_type == 1 && $order->status != 10) {
|
||||
$order->verify_code = $this->verifyCode();
|
||||
@ -253,19 +218,6 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
'user_type' => $storeOrderStatusRepository::U_TYPE_USER,
|
||||
];
|
||||
|
||||
//TODO 成为推广员
|
||||
foreach ($order->orderProduct as $product) {
|
||||
if ($flag && $product['cart_info']['product']['is_gift_bag']) {
|
||||
app()->make(UserRepository::class)->promoter($order->uid);
|
||||
$flag = false;
|
||||
}
|
||||
}
|
||||
if ($order->order_type == 0) {
|
||||
//发起队列物流信息处理
|
||||
//event('order.sendGoodsCode', $order);
|
||||
Queue::push(SendGoodsCodeJob::class, $order);
|
||||
}
|
||||
|
||||
// 商户流水账单数据
|
||||
$finance[] = [
|
||||
'order_id' => $order->order_id,
|
||||
@ -305,36 +257,7 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
}
|
||||
|
||||
if (!$presell) {
|
||||
if ($order['extension_one'] > 0) {
|
||||
$finance[] = [
|
||||
'order_id' => $order->order_id,
|
||||
'order_sn' => $order->order_sn,
|
||||
'user_info' => $groupOrder->user->nickname,
|
||||
'user_id' => $uid,
|
||||
'financial_type' => 'brokerage_one',
|
||||
'financial_pm' => 0,
|
||||
'type' => 1,
|
||||
'number' => $order['extension_one'],
|
||||
'mer_id' => $order->mer_id,
|
||||
'financial_record_sn' => $financeSn . ($i++)
|
||||
];
|
||||
}
|
||||
|
||||
if ($order['extension_two'] > 0) {
|
||||
$finance[] = [
|
||||
'order_id' => $order->order_id,
|
||||
'order_sn' => $order->order_sn,
|
||||
'user_info' => $groupOrder->user->nickname,
|
||||
'user_id' => $uid,
|
||||
'financial_type' => 'brokerage_two',
|
||||
'financial_pm' => 0,
|
||||
'type' => 1,
|
||||
'number' => $order['extension_two'],
|
||||
'mer_id' => $order->mer_id,
|
||||
'financial_record_sn' => $financeSn . ($i++)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
if ($order['commission_rate'] > 0) {
|
||||
$finance[] = [
|
||||
'order_id' => $order->order_id,
|
||||
@ -409,14 +332,8 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
'id' => $order->order_id
|
||||
]
|
||||
], $order->mer_id);
|
||||
//自动打印订单
|
||||
$this->autoPrinter($order->order_id, $order->mer_id);
|
||||
}
|
||||
//分销判断
|
||||
// if ($groupOrder->user->spread_uid) {
|
||||
// Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_pay_num', 'inc' => 1]);
|
||||
// Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_money', 'inc' => $groupOrder->pay_price]);
|
||||
// }
|
||||
|
||||
app()->make(UserRepository::class)->update($groupOrder->uid, [
|
||||
'pay_count' => Db::raw('pay_count+' . count($groupOrder->orderList)),
|
||||
'pay_price' => Db::raw('pay_price+' . $groupOrder->pay_price),
|
||||
@ -428,38 +345,14 @@ class StoreOtherOrderRepository extends BaseRepository
|
||||
}
|
||||
$financialRecordRepository->insertAll($finance);
|
||||
$storeOrderStatusRepository->batchCreateLog($orderStatus);
|
||||
if (count($groupOrder['give_coupon_ids']) > 0)
|
||||
$groupOrder['give_coupon_ids'] = app()->make(StoreCouponRepository::class)->getGiveCoupon($groupOrder['give_coupon_ids'])->column('coupon_id');
|
||||
$groupOrder->save();
|
||||
});
|
||||
|
||||
if (count($groupOrder['give_coupon_ids']) > 0) {
|
||||
try {
|
||||
Queue::push(PayGiveCouponJob::class, ['ids' => $groupOrder['give_coupon_ids'], 'uid' => $groupOrder['uid']]);
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
}
|
||||
|
||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]);
|
||||
Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]);
|
||||
Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]);
|
||||
Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_num', 'inc' => 1]);
|
||||
app()->make(UserBrokerageRepository::class)->incMemberValue($groupOrder->uid, 'member_pay_num', $groupOrder->group_order_id);
|
||||
$groupOrder = $groupOrder->toArray();
|
||||
event('order.paySuccess', compact('groupOrder'));
|
||||
//店内扫码支付
|
||||
if (isset($groupOrder['micro_pay']) && $groupOrder['micro_pay'] == 1) {
|
||||
$order = $this->dao->search(['uid' => $groupOrder->uid])->where('group_order_id', $groupOrder->group_order_id)->find();
|
||||
$order->status = 2;
|
||||
$order->verify_time = date('Y-m-d H:i:s');
|
||||
$user = $order->user;
|
||||
event('order.take.before', compact('order'));
|
||||
Db::transaction(function () use ($order, $user) {
|
||||
$this->takeAfter($order, $user);
|
||||
$order->save();
|
||||
});
|
||||
event('order.take', compact('order'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -344,7 +344,15 @@ class ProductRepository extends BaseRepository
|
||||
$ret = Spu::getInstance()->where('product_id', $id)->whereIn('product_type', [0, 98, 99])->find();
|
||||
Db::transaction(function () use ($id, $data, $settleParams, $ret) {
|
||||
$this->save($id, $settleParams, null, [], 0);
|
||||
app()->make(SpuRepository::class)->update($ret->spu_id, ['price' => $data['price']]);
|
||||
$value = $data['mer_labels'];
|
||||
if (!empty($value)) {
|
||||
if (!is_array($value)) {
|
||||
$data['mer_labels'] = ',' . $value . ',';
|
||||
} else {
|
||||
$data['mer_labels'] = ',' . implode(',', $value) . ',';
|
||||
}
|
||||
}
|
||||
app()->make(SpuRepository::class)->update($ret->spu_id, ['price' => $data['price'],'mer_labels'=>$data['mer_labels']]);
|
||||
Queue(SendSmsJob::class, ['tempId' => 'PRODUCT_INCREASE', 'id' => $id]);
|
||||
});
|
||||
}
|
||||
@ -541,7 +549,7 @@ class ProductRepository extends BaseRepository
|
||||
{
|
||||
$result = [];
|
||||
foreach ($data as $value) {
|
||||
if (is_int($value)||$value['category']) {
|
||||
if (is_int($value) || $value['category']) {
|
||||
$result[] = [
|
||||
'product_id' => $productId,
|
||||
'mer_cate_id' => $value,
|
||||
@ -726,7 +734,7 @@ class ProductRepository extends BaseRepository
|
||||
if ($data['product_type'] == 3) $make = app()->make(ProductAssistSkuRepository::class);
|
||||
if ($data['product_type'] == 4) $make = app()->make(ProductGroupSkuRepository::class);
|
||||
|
||||
$spu_where = ['activity_id' => $activeId, 'product_type' => $data['product_type'], 'product_id' => $id];
|
||||
$spu_where = ['activity_id' => $activeId??0, 'product_type' => $data['product_type'], 'product_id' => $id];
|
||||
$spu = $spu_make->getSearch($spu_where)->find();
|
||||
$data['star'] = $spu['star'] ?? '';
|
||||
$data['mer_labels'] = $spu['mer_labels'] ?? '';
|
||||
@ -1939,13 +1947,13 @@ class ProductRepository extends BaseRepository
|
||||
} else {
|
||||
//加入购物车
|
||||
//购物车现有
|
||||
$_num = $this->productOnceCountCart($where['product_id'], $data['product_attr_unique'], $userInfo->uid, $data['product_type'],$data['source']);
|
||||
$_num = $this->productOnceCountCart($where['product_id'], $data['product_attr_unique'], $userInfo->uid, $data['product_type'], $data['source']);
|
||||
$cart_num = $_num + $data['cart_num'];
|
||||
}
|
||||
if ($sku['stock'] < $cart_num) throw new ValidateException('库存不足');
|
||||
//添加购物车
|
||||
if (!$data['is_new']) {
|
||||
$cart = app()->make(StoreCartRepository::class)->getCartByProductSku($data['product_attr_unique'], $userInfo->uid, $data['product_type'],$data['source']);
|
||||
$cart = app()->make(StoreCartRepository::class)->getCartByProductSku($data['product_attr_unique'], $userInfo->uid, $data['product_type'], $data['source']);
|
||||
}
|
||||
return compact('product', 'sku', 'cart');
|
||||
}
|
||||
@ -1958,7 +1966,7 @@ class ProductRepository extends BaseRepository
|
||||
* @author Qinii
|
||||
* @day 5/26/21
|
||||
*/
|
||||
public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0,$source=0)
|
||||
public function productOnceCountCart($productId, $product_attr_unique, $uid, $product_type = 0, $source = 0)
|
||||
{
|
||||
$make = app()->make(StoreCartRepository::class);
|
||||
$where = [
|
||||
@ -1970,7 +1978,7 @@ class ProductRepository extends BaseRepository
|
||||
'product_id' => $productId,
|
||||
'uid' => $uid,
|
||||
'product_attr_unique' => $product_attr_unique,
|
||||
'source'=>$source
|
||||
'source' => $source
|
||||
];
|
||||
$cart_num = $make->getSearch($where)->sum('cart_num');
|
||||
return $cart_num;
|
||||
@ -2346,7 +2354,7 @@ class ProductRepository extends BaseRepository
|
||||
foreach ($data['attrValue'] as $k => $item) {
|
||||
//$data['attrValue'][$k]['stock'] = 0;
|
||||
}
|
||||
app()->make(ProductLabelRepository::class)->checkHas($merId, $data['mer_labels']);
|
||||
app()->make(ProductLabelRepository::class)->checkHas(0, $data['mer_labels']);
|
||||
$count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['cate_id'], 'is_show' => 1]);
|
||||
if (!$count) throw new ValidateException('平台分类不存在或不可用');
|
||||
app()->make(StoreProductValidate::class)->check($data);
|
||||
@ -2575,4 +2583,50 @@ class ProductRepository extends BaseRepository
|
||||
);
|
||||
return compact('count', 'list');
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加商品到云市场
|
||||
*/
|
||||
public function add_cloud_product($data, $merchant)
|
||||
{
|
||||
if ($data['is_del'] == 1) {
|
||||
return Db::name('cloud_product')->where('product_id', $data['product_id'])->delete();
|
||||
}
|
||||
if ($data['product_id'] && $data['type']) {
|
||||
switch ($data['type']) {
|
||||
case 'five':
|
||||
$data['type'] = 5;
|
||||
break;
|
||||
case 'two':
|
||||
$data['type'] = 6;
|
||||
break;
|
||||
case 'three':
|
||||
$data['type'] = 7;
|
||||
break;
|
||||
case 'seven':
|
||||
$data['type'] = 8;
|
||||
break;
|
||||
}
|
||||
$store_product=Db::name('store_product')->where('product_id',$data['product_id'])->find();
|
||||
$datas = [
|
||||
'product_id' => $data['product_id'],
|
||||
'cate_id' => $store_product['cate_id'],
|
||||
'mer_id' => $merchant['mer_id'],
|
||||
'source_mer_id' => 0,
|
||||
'street_code' => $merchant['street_id'],
|
||||
'type_id' => $merchant['type_id'],
|
||||
'category_id' => $merchant['category_id'],
|
||||
'weight' => 1,
|
||||
'status' => 1,
|
||||
'create_time' => date('Y-m-d H:i:s'),
|
||||
'mer_labels' => ',' . $data['type'] . ',',
|
||||
];
|
||||
$res= Db::name('cloud_product')->where('product_id',$data['product_id'])->where('mer_id',$merchant['mer_id'])->find();
|
||||
if($res){
|
||||
throw new ValidateException('该商品已设置过');
|
||||
}
|
||||
return Db::name('cloud_product')->insert($datas);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -369,10 +369,11 @@ class Auth extends BaseController
|
||||
|
||||
if ($store_service) {
|
||||
$mer_arr = Db::name('merchant')->where('mer_id', $store_service['mer_id'])->where('is_del', 0)->field('type_id,mer_avatar,mer_banner,business_status,mer_info,category_id,service_phone,mer_address,uid,mer_name,create_time,update_time,mer_settlement_agree_status,is_margin,street_id')->find();
|
||||
$bank_info = Db::name('merchant_intention')->where('mer_id', $store_service['mer_id'])->field('company_name,bank_username,bank_opening,bank_code')->find();
|
||||
if ($mer_arr && $mer_arr['mer_avatar'] != '' && $mer_arr['mer_banner'] != '' && $mer_arr['mer_info'] && $mer_arr['service_phone'] != '' && $mer_arr['mer_address'] != '') {
|
||||
$data['is_wsxx'] = 1;
|
||||
}
|
||||
$data['mer_info'] = $mer_arr;
|
||||
$data['mer_info'] = array_merge($mer_arr,$bank_info);
|
||||
$typCode = Db::name('merchant_type')->where('mer_type_id', $mer_arr['type_id'] ?? 0)->value('type_code');
|
||||
$data['mer_info']['type_code'] = $typCode;
|
||||
$data['mer_info']['setting_status'] = 0;
|
||||
@ -1592,19 +1593,12 @@ class Auth extends BaseController
|
||||
if ($status == 1) {
|
||||
$repository->updateStatus($id, $data);
|
||||
$intention = Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->find();
|
||||
$merLicenseImage = '';
|
||||
if (!empty($intention['images'])) {
|
||||
$merLicenseImageArray = explode(',', $intention['images']);
|
||||
$merLicenseImage = $merLicenseImageArray[0] ?? '';
|
||||
app()->make(ConfigValueRepository::class)->setFormData([
|
||||
'mer_certificate' => $merLicenseImageArray
|
||||
], $intention['mer_id']);
|
||||
}
|
||||
$merCertificate = merchantConfig($intention['mer_id'], 'mer_certificate');
|
||||
if (!is_array($merCertificate)) {
|
||||
$merCertificate = explode(',', $merCertificate);
|
||||
}
|
||||
$merCertificate[0] = $merLicenseImage;
|
||||
app()->make(ConfigValueRepository::class)->setFormData([
|
||||
'mer_certificate' => $merCertificate
|
||||
], $intention['mer_id']);
|
||||
}
|
||||
Db::name('merchant_intention')->where('mer_intention_id', $id)->where('type', 1)->update($updData);
|
||||
} else {
|
||||
|
@ -32,6 +32,8 @@ use app\common\repositories\user\UserSignRepository;
|
||||
use app\common\repositories\user\UserVisitRepository;
|
||||
use app\common\repositories\wechat\TemplateMessageRepository;
|
||||
use app\common\repositories\wechat\WechatUserRepository;
|
||||
use app\common\repositories\store\product\ProductLabelRepository;
|
||||
|
||||
use app\common\model\system\merchant\Merchant;
|
||||
use crmeb\basic\BaseController;
|
||||
use crmeb\services\AlipayService;
|
||||
@ -48,7 +50,13 @@ use think\facade\Cache;
|
||||
use think\facade\Db;
|
||||
use think\facade\Log;
|
||||
use think\Response;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Ocr;
|
||||
use AlibabaCloud\Tea\Exception\TeaError;
|
||||
use AlibabaCloud\Tea\Utils\Utils;
|
||||
|
||||
use Darabonba\OpenApi\Models\Config;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseRequest;
|
||||
use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions;
|
||||
/**
|
||||
* Class Common
|
||||
* @package app\controller\api
|
||||
@ -543,4 +551,59 @@ class Common extends BaseController
|
||||
return app('json')->success($data);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 商户营业执照
|
||||
*/
|
||||
public function merchant_license_identify($image){
|
||||
$config = new Config([
|
||||
// 必填,您的 AccessKey ID
|
||||
"accessKeyId" => 'LTAI5t7mhH3ij2cNWs1zhPmv',
|
||||
// 必填,您的 AccessKey Secret
|
||||
"accessKeySecret" => 'gqo2wMpvi8h5bDBmCpMje6BaiXvcPu'
|
||||
]);
|
||||
// Endpoint 请参考 https://api.aliyun.com/product/ocr
|
||||
$config->endpoint = "ocr.cn-shanghai.aliyuncs.com";
|
||||
$client= new Ocr($config);
|
||||
$recognizeBusinessLicenseRequest = new RecognizeBusinessLicenseRequest([
|
||||
"imageURL" => $image
|
||||
]);
|
||||
$runtime = new RuntimeOptions([]);
|
||||
try {
|
||||
// 复制代码运行请自行打印 API 的返回值
|
||||
$resp=$client->recognizeBusinessLicenseWithOptions($recognizeBusinessLicenseRequest, $runtime);
|
||||
$a= Utils::toArray($resp->body);
|
||||
$data=[];
|
||||
if($a){
|
||||
$data['address']=$a['Data']['Address'];
|
||||
$data['business']=$a['Data']['Business'];
|
||||
$data['legal_person']=$a['Data']['LegalPerson'];
|
||||
$data['name']=$a['Data']['Name'];
|
||||
$data['register_number']=$a['Data']['RegisterNumber'];
|
||||
$data['type']=$a['Data']['Type'];
|
||||
}
|
||||
return app('json')->success($data);
|
||||
|
||||
}
|
||||
catch (Exception $error) {
|
||||
if (!($error instanceof TeaError)) {
|
||||
$error = new TeaError([], $error->getMessage(), $error->getCode(), $error);
|
||||
}
|
||||
$a=Utils::assertAsString($error->message);
|
||||
return app('json')->fail($a);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品标签
|
||||
*/
|
||||
public function label_lst(ProductLabelRepository $repository)
|
||||
{
|
||||
[$page, $limit] = $this->getPage();
|
||||
$where = $this->request->params(['name', 'type', 'status']);
|
||||
$data = $repository->getList($where,$page, $limit);
|
||||
return app('json')->success($data);
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
namespace app\controller\api;
|
||||
|
||||
use app\common\model\system\merchant\Merchant;
|
||||
use app\common\model\system\merchant\MerchantType;
|
||||
use crmeb\basic\BaseController;
|
||||
use think\facade\Db;
|
||||
|
||||
@ -40,6 +42,7 @@ class Statistics extends BaseController
|
||||
}
|
||||
$where[] = ['is_del', '=', 0];
|
||||
$where[] = ['status', '=', 1];
|
||||
$where[] = ['type_id', '=', $parmas['mer_type_id']];
|
||||
$count = Db::name('merchant')->where($where)->count();
|
||||
return app('json')->success(['count' => $count]);
|
||||
}
|
||||
@ -60,8 +63,9 @@ class Statistics extends BaseController
|
||||
if (!isset($parmas['mer_intention_id']) || $parmas['mer_intention_id'] == '') {
|
||||
return app('json')->fail('mer_intention_id:格式错误');
|
||||
}
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
$where[] = ['create_time', 'between time', [date("Y-m-d H:i:s", $parmas['start_time']), date("Y-m-d H:i:s", $parmas['end_time'])]];
|
||||
$where[] = ['mer_id', '=', $parmas['mer_intention_id']];
|
||||
$where[] = ['mer_id', '=', $merchant['mer_id']];
|
||||
$where[] = ['mer_status', '=', 1];
|
||||
$where[] = ['status', '=', 1];
|
||||
$where[] = ['is_used', '=', 1];
|
||||
@ -311,4 +315,144 @@ class Statistics extends BaseController
|
||||
->sum('p.total_price');
|
||||
return app('json')->success(['trade_amount' => $count]);
|
||||
}
|
||||
|
||||
// 镇级下的镇级供应链商户
|
||||
public function SupplyChainMerchant()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$where[] = ['street_id', '=', $parmas['street_code']];
|
||||
$where[] = ['is_del', '=', 0];
|
||||
$where[] = ['status', '=', 1];
|
||||
// 镇级供应链 type_code = TypeTownSupplyChain
|
||||
$merchantType = MerchantType::where('type_code', 'TypeTownSupplyChain')->find()->toArray();
|
||||
|
||||
$where[] = ['type_id', '=', $merchantType['mer_type_id']];
|
||||
|
||||
$list = Db::name('merchant')->where($where)->select();
|
||||
|
||||
return app('json')->success(compact('list'));
|
||||
}
|
||||
|
||||
public function GeneralMerchant()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$where[] = ['street_id', '=', $parmas['street_code']];
|
||||
$where[] = ['is_del', '=', 0];
|
||||
$where[] = ['status', '=', 1];
|
||||
// 镇级普通商户 type_code = TypeStore
|
||||
$merchantType = MerchantType::where('type_code', 'TypeStore')->find();
|
||||
|
||||
$where[] = ['type_id', '=', $merchantType['mer_type_id']];
|
||||
|
||||
$list = Db::name('merchant')->where($where)->select();
|
||||
|
||||
return app('json')->success(compact('list'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 镇级供应链商户商品数量查询
|
||||
*/
|
||||
public function SupplyChainProduct()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
if (empty($merchant) || $merchant['type_id'] != 17) {
|
||||
return app('json')->success();
|
||||
}
|
||||
$merchantName = $merchant['mer_name'];
|
||||
$where[] = ['mer_id', '=', $merchant['mer_id']];
|
||||
$where[] = ['mer_status', '=', 1];
|
||||
$where[] = ['status', '=', 1];
|
||||
$where[] = ['is_used', '=', 1];
|
||||
$where[] = ['is_show', '=', 1];
|
||||
$count = Db::name('store_product')->where($where)->count();
|
||||
return app('json')->success(compact('count', 'merchantName'));
|
||||
}
|
||||
|
||||
public function GeneralMerchantProduct()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
if (empty($merchant) || $merchant['type_id'] != 10) {
|
||||
return app('json')->success();
|
||||
}
|
||||
$merchantName = $merchant['mer_name'];
|
||||
$where[] = ['mer_id', '=', $merchant['mer_id']];
|
||||
$where[] = ['mer_status', '=', 1];
|
||||
$where[] = ['status', '=', 1];
|
||||
$where[] = ['is_used', '=', 1];
|
||||
$where[] = ['is_show', '=', 1];
|
||||
$count = Db::name('store_product')->where($where)->count();
|
||||
return app('json')->success(compact('count', 'merchantName'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 商户商品库存更新查询
|
||||
*/
|
||||
public function SupplyChainProductStockCount1()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
if (empty($merchant) || $merchant['type_id'] != 17) {
|
||||
return app('json')->success();
|
||||
}
|
||||
$where[] = ['mer_id', '=', $merchant['mer_id']];
|
||||
$count = Db::name('store_product_stock')->where($where)->count();
|
||||
return app('json')->success(['count' => $count]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 商户商品库存更新查询
|
||||
*/
|
||||
public function ProductStockCount1()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
if (empty($merchant) || $merchant['type_id'] != 10) {
|
||||
return app('json')->success();
|
||||
}
|
||||
$where[] = ['mer_id', '=', $merchant['mer_id']];
|
||||
$count = Db::name('store_product_stock')->where($where)->count();
|
||||
return app('json')->success(['count' => $count]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 采购金额和销售金额
|
||||
*/
|
||||
public function SupplyChainProductPrice()
|
||||
{
|
||||
$parmas = $this->request->param();
|
||||
if (isset($parmas['type']) && $parmas['type'] != '') {
|
||||
switch ($parmas['type']) {
|
||||
case 200:
|
||||
$where[] = ['p.source', '=', 200];
|
||||
break;
|
||||
case 300:
|
||||
$where[] = ['p.source', '=', 0];
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$where[] = ['p.source', '=', 0];
|
||||
}
|
||||
$merchant = Merchant::where('mer_intention_id', $parmas['mer_intention_id'])->find();
|
||||
if (empty($merchant) || $merchant['type_id'] == 17) {
|
||||
return app('json')->success();
|
||||
}
|
||||
$mer_id = $merchant['mer_id'];
|
||||
$where[] = ['p.is_refund', '=', 0];
|
||||
$count = Db::name('store_order_product')->alias('p')
|
||||
->where($where)
|
||||
->join('store_order o', 'o.mer_id=' . $mer_id . ' and o.paid=1 and o.is_del=0')
|
||||
->sum('p.total_price');
|
||||
$merName = $merchant['mer_name'];
|
||||
return app('json')->success(compact('merName', 'count'));
|
||||
}
|
||||
}
|
||||
|
@ -37,26 +37,39 @@ class Logistics extends BaseController
|
||||
{
|
||||
// 查区县的镇农科公司
|
||||
$list = [];
|
||||
$companyList = Db::connect('work_task')->name('company')->where(['area' => $this->areaCode, 'company_type'=>41])->select()->toArray();
|
||||
$companyList = Db::connect('work_task')->name('company')->where('id', 69)->where(['area' => $this->areaCode, 'company_type'=>41])->select()->toArray();
|
||||
|
||||
foreach ($companyList as $company) {
|
||||
// 先从供销系统 查出镇下边的所有配送员-小组服务公司的负责人
|
||||
$serviceGroupCompanyIds = Db::connect('work_task')->name('company')
|
||||
->where(['street'=> $company['street'], 'company_type'=>18])
|
||||
->column('id');
|
||||
|
||||
if (empty($serviceGroupCompanyIds)) {
|
||||
continue;
|
||||
}
|
||||
$userIdList = Db::connect('work_task')->name('user')
|
||||
->whereIn('company_id', $serviceGroupCompanyIds)
|
||||
->where(['group_id'=>5])
|
||||
->column('id');
|
||||
->field('id, nickname')->select()->toArray();
|
||||
|
||||
if (empty($userIdList)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 从物流系统 查物流订单排序 确定谁是 镇辖区内配送订单最多的配送员
|
||||
$topCourier = Db::connect('logistics')->name('logistics')
|
||||
->field(['courier_id','courier_name','COUNT(order_id) AS order_count'])
|
||||
->whereIn('courier_id', $userIdList)
|
||||
->whereIn('courier_id', array_column($userIdList, 'id'))
|
||||
->group('courier_id')
|
||||
->order('order_count DESC')
|
||||
->find();
|
||||
|
||||
if (!empty($userIdList) && empty($topCourier)) {
|
||||
$topCourier['courier_id'] = $userIdList[0]['id'];
|
||||
$topCourier['courier_name'] = $userIdList[0]['nickname'];
|
||||
$topCourier['order_count'] = 0;
|
||||
}
|
||||
|
||||
// 小组公司没有配送员或是没有三轮车
|
||||
if (empty($topCourier)) {
|
||||
continue;
|
||||
@ -65,8 +78,15 @@ class Logistics extends BaseController
|
||||
// 三轮车车牌号 根据配送员id反查公司id,公司id反查车牌号
|
||||
$courier = Db::connect('work_task')->name('user')->where(['id'=>$topCourier['courier_id']])->find();
|
||||
|
||||
if (empty($courier)) {
|
||||
continue;
|
||||
}
|
||||
$vehicleRent = Db::connect('work_task')->name('vehicle_rent')->where(['rent_company_id'=>$courier['company_id']])->find();
|
||||
|
||||
if (empty($vehicleRent)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$topCourier['id'] = $vehicleRent['car_id'];
|
||||
$topCourier['license'] = $vehicleRent['car_license'];
|
||||
$topCourier['area_code'] = $courier['area'];
|
||||
@ -128,17 +148,24 @@ class Logistics extends BaseController
|
||||
// 第二页 物流信息统计
|
||||
public function logisticsCount()
|
||||
{
|
||||
$topCourier = [];
|
||||
|
||||
// 查询镇辖区内配送订单最多的配送员
|
||||
|
||||
// 先从供销系统 查出镇下边的所有配送员-小组服务公司的负责人
|
||||
$serviceGroupCompanyIds = Db::connect('work_task')->name('company')
|
||||
->where(['street'=> $this->streetCode, 'company_type'=>18])
|
||||
->column('id');
|
||||
if (empty($serviceGroupCompanyIds)) {
|
||||
return app('json')->success($topCourier);
|
||||
}
|
||||
$userIdList = Db::connect('work_task')->name('user')
|
||||
->whereIn('company_id', $serviceGroupCompanyIds)
|
||||
->where(['group_id'=>5])
|
||||
->column('id');
|
||||
|
||||
if (empty($userIdList)) {
|
||||
return app('json')->success($topCourier);
|
||||
}
|
||||
// 从物流系统 查物流订单排序 确定谁是 镇辖区内配送订单最多的配送员
|
||||
$topCourier = Db::connect('logistics')->name('logistics')
|
||||
->field(['courier_id','courier_name','COUNT(order_id) AS order_count'])
|
||||
@ -146,6 +173,17 @@ class Logistics extends BaseController
|
||||
->group('courier_id')
|
||||
->order('order_count DESC')
|
||||
->find();
|
||||
|
||||
if (!empty($userIdList) && empty($topCourier)) {
|
||||
$user = Db::connect('work_task')->name('user')->where('id', $userIdList[0])->find();
|
||||
$topCourier['courier_id'] = $user['id'];
|
||||
$topCourier['courier_name'] = $user['nickname'];
|
||||
$topCourier['order_count'] = 0;
|
||||
}
|
||||
|
||||
if (empty($topCourier)) {
|
||||
return app('json')->success($topCourier);
|
||||
}
|
||||
// 返查配送员的物流配送订单统计信息
|
||||
// 待取货数
|
||||
$topCourier['pending_order_count'] = Db::connect('logistics')->name('logistics')->where(['status'=>0, 'courier_id'=>$topCourier['courier_id']])->count();
|
||||
@ -167,9 +205,13 @@ class Logistics extends BaseController
|
||||
public function logisticsMapCount()
|
||||
{
|
||||
$courierId = $this->request->param('courier_id');
|
||||
$latestOrder = [];
|
||||
$latestTenOrder = [];
|
||||
// 最近一次取货地址 最新一笔的配送中订单的取货地址
|
||||
$latestLogistics = Db::connect('logistics')->name('logistics')->where(['status'=>1, 'courier_id' => $courierId])->order('id', 'desc')->find();
|
||||
|
||||
if (empty($latestLogistics)) {
|
||||
return app('json')->success(compact('latestOrder', 'latestTenOrder'));
|
||||
}
|
||||
$latestOrderInfo = Db::name('store_order')->where(['order_id'=>$latestLogistics['order_id']])->find();
|
||||
|
||||
$merchant = Db::name('merchant')->where(['mer_id'=>$latestOrderInfo['mer_id']])->find();
|
||||
|
@ -43,7 +43,7 @@ class Order extends BaseController
|
||||
public function currOrderInfo()
|
||||
{
|
||||
try {
|
||||
$day = '2023-11-29'; // today
|
||||
$day = 'today'; // today
|
||||
$currOrderCountQuery = Db::name('store_order')->alias('o')
|
||||
->field(['o.order_sn', 'o.real_name', 'o.user_phone', 'o.user_address', 'o.user_address_code', 'p.store_name', 'm.mer_name', 'o.create_time', 'o.status'])
|
||||
->leftJoin('product_order_log og', 'o.order_id = og.order_id')
|
||||
@ -177,7 +177,7 @@ class Order extends BaseController
|
||||
{
|
||||
// 查到镇级
|
||||
if ($this->areaCode != '' && $this->streetCode != '') {
|
||||
$list = Db::query("SELECT p.store_name, SUM(o.`total_num`) AS total_quantity
|
||||
$list = Db::query("SELECT p.store_name, SUM(op.`product_num`) AS total_quantity
|
||||
FROM `eb_store_product` p
|
||||
JOIN `eb_store_order_product` op ON p.product_id = op.product_id
|
||||
JOIN `eb_store_order` o ON o.`order_id` = op.`order_id`
|
||||
@ -188,7 +188,7 @@ class Order extends BaseController
|
||||
LIMIT 50");
|
||||
} else {
|
||||
// 查到区县级
|
||||
$list = Db::query("SELECT p.store_name, SUM(o.`total_num`) AS total_quantity
|
||||
$list = Db::query("SELECT p.store_name, SUM(op.`product_num`) AS total_quantity
|
||||
FROM `eb_store_product` p
|
||||
JOIN `eb_store_order_product` op ON p.product_id = op.product_id
|
||||
JOIN `eb_store_order` o ON o.`order_id` = op.`order_id`
|
||||
|
@ -256,4 +256,35 @@ class StoreProduct extends BaseController
|
||||
return app('json')->fail('入库失败');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商户添加商品到云仓
|
||||
*/
|
||||
public function add_cloud_product()
|
||||
{
|
||||
$data = $this->request->params(['product_id', 'type', 'is_del']);
|
||||
$merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find();
|
||||
$res = $this->repository->add_cloud_product($data, $merchant);
|
||||
if ($res) {
|
||||
return app('json')->success('设置成功');
|
||||
} else {
|
||||
return app('json')->fail('设置失败');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 云仓商品列表
|
||||
*/
|
||||
public function cloud_product_list(){
|
||||
[$page, $limit] = $this->getPage();
|
||||
$merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $this->merId,])->find();
|
||||
$product_ids=Db::name('cloud_product')->where('mer_id',$this->merId())
|
||||
->page($page)->limit($limit)->column('product_id');
|
||||
$select = Db::name('store_product')->where('mer_id', $this->merId())->whereIn('product_id',$product_ids)->select()->toArray();
|
||||
$count = Db::name('cloud_product')->where('mer_id',$merchant['mer_id'])->count();
|
||||
return app('json')->success(['list'=>$select,'count'=>$count]);
|
||||
}
|
||||
}
|
||||
|
@ -268,15 +268,16 @@ class Merchant extends BaseController
|
||||
if (empty($id)) {
|
||||
return app('json')->fail('参数错误');
|
||||
}
|
||||
$merchant = app()->make(MerchantRepository::class)->search(['mer_id' => $id])->find();
|
||||
|
||||
$data = Db::name('merchant')->where('mer_id', $id)->find();
|
||||
$data['mer_certificate'] = merchantConfig($id, 'mer_certificate');
|
||||
$data['mer_certificate'] = $data['mer_certificate'][0] ?? '';
|
||||
// $append = ['merchantCategory', 'merchantType', 'mer_certificate'];
|
||||
// if ($merchant['is_margin'] == -10)
|
||||
// $append[] = 'refundMarginOrder';
|
||||
// $data = Db::name('merchant')->where('mer_id', $id)->find();
|
||||
$merchant['mer_certificate'] = merchantConfig($id, 'mer_certificate');
|
||||
// $data['mer_certificate'] = $data['mer_certificate'][0] ?? '';
|
||||
$append = ['merchantCategory', 'merchantType', 'mer_certificate'];
|
||||
if ($merchant['is_margin'] == -10)
|
||||
$append[] = 'refundMarginOrder';
|
||||
|
||||
// $data = $merchant->append($append)->hidden(['mark', 'reg_admin_id', 'sort'])->toArray();
|
||||
$data = $merchant->append($append)->hidden(['mark', 'reg_admin_id', 'sort','financial_bank'])->toArray();
|
||||
$delivery = $repository->get($id) + systemConfig(['tx_map_key']);
|
||||
$data = array_merge($data, $delivery);
|
||||
$data['sys_bases_status'] = systemConfig('sys_bases_status') === '0' ? 0 : 1;
|
||||
|
@ -135,6 +135,7 @@ class MerchantIntention extends BaseController
|
||||
'village_id',
|
||||
'is_nmsc',
|
||||
'bank_username',
|
||||
'bank_code',
|
||||
'bank_opening',
|
||||
'bank_front',
|
||||
'bank_back',
|
||||
@ -142,7 +143,7 @@ class MerchantIntention extends BaseController
|
||||
'cardno_back',
|
||||
]);
|
||||
|
||||
if (empty($data['bank_username']) || empty($data['bank_opening']) || empty($data['bank_front']) || empty($data['bank_back']) || empty($data['cardno_front']) || empty($data['cardno_back'])) {
|
||||
if (empty($data['bank_username']) || empty($data['bank_opening'])||empty($data['bank_code'])) {
|
||||
return app('json')->fail('请完善银行卡及身份信息');
|
||||
}
|
||||
|
||||
@ -175,6 +176,7 @@ class MerchantIntention extends BaseController
|
||||
}
|
||||
$intenInfo['bank_username'] = $data['bank_username'];
|
||||
$intenInfo['bank_opening'] = $data['bank_opening'];
|
||||
$intenInfo['bank_code'] = $data['bank_code'];
|
||||
$intenInfo['bank_front'] = $data['bank_front'];
|
||||
$intenInfo['bank_back'] = $data['bank_back'];
|
||||
$intenInfo['cardno_front'] = $data['cardno_front'];
|
||||
@ -205,6 +207,7 @@ class MerchantIntention extends BaseController
|
||||
'address' => $intenInfo['address'] ?? '',
|
||||
'bank_username' => $data['bank_username'] ?? '',
|
||||
'bank_opening' => $data['bank_opening'] ?? '',
|
||||
'bank_code' => $data['bank_code'] ?? '',
|
||||
'bank_front' => $data['bank_front'] ?? '',
|
||||
'bank_back' => $data['bank_back'] ?? '',
|
||||
'cardno_front' => $data['cardno_front'] ?? '',
|
||||
|
@ -30,7 +30,7 @@ class CloudWarehouse extends BaseController
|
||||
* @param SpuRepository $repository
|
||||
* @param MerchantDao $merchantDao
|
||||
*/
|
||||
public function __construct(App $app, MerchantDao $merchantDao, SpuRepository $spuRepository,SpuDao $SpuDao)
|
||||
public function __construct(App $app, MerchantDao $merchantDao, SpuRepository $spuRepository, SpuDao $SpuDao)
|
||||
{
|
||||
parent::__construct($app);
|
||||
$this->merchantDao = $merchantDao;
|
||||
@ -43,28 +43,60 @@ class CloudWarehouse extends BaseController
|
||||
* type_id 13云仓商品列表
|
||||
* @return mixed
|
||||
*/
|
||||
public function index($street_code, $page = 1, $category_id = 0,$location='')
|
||||
public function index($street_code, $page = 1, $category_id = 0, $cate_pid = 0,$cate_id = 0,$location = '')
|
||||
{
|
||||
$cloud_product = Db::name('cloud_product')
|
||||
->where('cate_id',$category_id)
|
||||
->where('street_code', $street_code)->where('status', 1)->page($page)->column('product_id');
|
||||
|
||||
$cloud_where['street_code']=$street_code;
|
||||
$cloud_where['status']=1;
|
||||
if($cate_pid!=0){
|
||||
$cate_id=Db::name('store_category')->where('pid',$cate_pid)->where('is_show',1)->column('store_category_id');
|
||||
}
|
||||
if($cate_id>0){
|
||||
$cloud_where['cate_id']=$cate_id;
|
||||
}
|
||||
$cloud_product_arr = Db::name('cloud_product')
|
||||
->where($cloud_where)
|
||||
->where(function($query){
|
||||
$query->whereOr('mer_labels', '')
|
||||
->whereOr('mer_labels',',5,');
|
||||
})->page($page)->field('product_id,mer_labels')->select();
|
||||
$cloud_product = [];
|
||||
foreach ($cloud_product_arr as $key => $value) {
|
||||
$cloud_product[] = $value['product_id'];
|
||||
}
|
||||
$where = [
|
||||
'is_show' => 1,
|
||||
'is_used' => 1,
|
||||
'status' => 1,
|
||||
'is_del' => 0,
|
||||
'mer_status' => 1,
|
||||
'product_type'=>98,
|
||||
'product_id'=>$cloud_product
|
||||
'product_type' => 98,
|
||||
'product_id' => $cloud_product
|
||||
];
|
||||
if (!$cloud_product && $category_id==0) {
|
||||
if (!$cloud_product) {
|
||||
return app('json')->success(['count' => 0, 'list' => []]);
|
||||
}
|
||||
$count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count();
|
||||
|
||||
$products = $this->spuRepository->getApiSearch($where,$page,10, false,true);
|
||||
if($products['list']){
|
||||
$list=$products['list'];
|
||||
$count = Db::name('cloud_product')
|
||||
->where($cloud_where)
|
||||
->where(function($query){
|
||||
$query->whereOr('mer_labels', '')
|
||||
->whereOr('mer_labels',',5,');
|
||||
})->count();
|
||||
|
||||
$products = $this->spuRepository->getApiSearch($where, $page, 10, false, true);
|
||||
if ($products['list']) {
|
||||
$list = $products['list'];
|
||||
foreach ($cloud_product_arr as $key => $value) {
|
||||
foreach ($list as $k => $v) {
|
||||
if ($value['product_id'] == $v['product_id']) {
|
||||
if ($value['mer_labels'] == ',5,') {
|
||||
$list[$k]['mer_labels_name'] = '五日达';
|
||||
} else {
|
||||
$list[$k]['mer_labels_name'] = '次日达';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return app('json')->success(['count' => $count, 'list' => $list]);
|
||||
}
|
||||
@ -75,10 +107,10 @@ class CloudWarehouse extends BaseController
|
||||
*/
|
||||
public function town()
|
||||
{
|
||||
$params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page','cate_pid']);
|
||||
$params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword', 'page', 'cate_pid']);
|
||||
$search = [
|
||||
'street_id' => $params['street_code'],
|
||||
'type_id' =>[Merchant::TypeStore,Merchant::TypeTownSupplyChain],
|
||||
'type_id' => [Merchant::TypeStore, Merchant::TypeTownSupplyChain],
|
||||
'status' => 1,
|
||||
'is_del' => 0,
|
||||
'mer_state' => 1,
|
||||
@ -101,10 +133,10 @@ class CloudWarehouse extends BaseController
|
||||
if (!empty($params['category_id'])) {
|
||||
$where['cate_id'] = $params['category_id'];
|
||||
}
|
||||
if($params['cate_pid']!=''){
|
||||
if ($params['cate_pid'] != '') {
|
||||
$where['cate_pid'] = $params['cate_pid'];
|
||||
}
|
||||
$products = $this->spuRepository->getApiSearch($where, $page, $limit, false,true);
|
||||
$products = $this->spuRepository->getApiSearch($where, $page, $limit, false, true);
|
||||
return app('json')->success($products);
|
||||
}
|
||||
}
|
||||
|
@ -211,7 +211,8 @@ class StoreProduct extends BaseController
|
||||
"attr",
|
||||
"attrValue",
|
||||
'spec_type',
|
||||
'is_stock'
|
||||
'is_stock',
|
||||
'mer_labels'
|
||||
];
|
||||
$data = $this->request->params($params);
|
||||
// $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]);
|
||||
|
@ -59,7 +59,8 @@ class StoreSpu extends BaseController
|
||||
'product_ids',
|
||||
'mer_id',
|
||||
'type_id',
|
||||
'street_id'
|
||||
'street_id',
|
||||
'category_id'
|
||||
]);
|
||||
if ($where['type_id']) {
|
||||
$arr = ['status' => 1, 'mer_state' => 1, 'is_del' => 0];
|
||||
@ -74,6 +75,9 @@ class StoreSpu extends BaseController
|
||||
$where['product_type'] = $where['product_type']??0;
|
||||
$where['order'] = $where['order'] ?: 'star';
|
||||
if ($where['is_trader'] != 1) unset($where['is_trader']);
|
||||
if($where['category_id']!=''){
|
||||
$where['mer_ids']= Db::name('merchant')->where(['category_id'=>$where['category_id'],'status'=>1,'is_del'=>0])->column('mer_id');
|
||||
}
|
||||
$data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo);
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
@ -29,14 +29,14 @@ use think\facade\Db;
|
||||
|
||||
class Product extends BaseController
|
||||
{
|
||||
protected $repository ;
|
||||
protected $repository;
|
||||
|
||||
/**
|
||||
* Product constructor.
|
||||
* @param App $app
|
||||
* @param repository $repository
|
||||
*/
|
||||
public function __construct(App $app ,repository $repository)
|
||||
public function __construct(App $app, repository $repository)
|
||||
{
|
||||
parent::__construct($app);
|
||||
$this->repository = $repository;
|
||||
@ -50,17 +50,17 @@ class Product extends BaseController
|
||||
public function lst()
|
||||
{
|
||||
[$page, $limit] = $this->getPage();
|
||||
$where = $this->request->params(['temp_id','cate_id','keyword',['type',1],'mer_cate_id','is_gift_bag','status','us_status','product_id','mer_labels',['order','sort'],'is_ficti','svip_price_type']);
|
||||
$where = array_merge($where,$this->repository->switchType($where['type'],$this->request->merId(),0));
|
||||
$type=$this->request->merchant()['type_id'];
|
||||
$typeCode=Db::name('merchant_type')->where('mer_type_id',$type)->value('type_code');
|
||||
$product_type=0;
|
||||
$where = $this->request->params(['temp_id', 'cate_id', 'keyword', ['type', 1], 'mer_cate_id', 'is_gift_bag', 'status', 'us_status', 'product_id', 'mer_labels', ['order', 'sort'], 'is_ficti', 'svip_price_type']);
|
||||
$where = array_merge($where, $this->repository->switchType($where['type'], $this->request->merId(), 0));
|
||||
$type = $this->request->merchant()['type_id'];
|
||||
$typeCode = Db::name('merchant_type')->where('mer_type_id', $type)->value('type_code');
|
||||
$product_type = 0;
|
||||
|
||||
// if ($type==12){
|
||||
if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){
|
||||
$where['product_type']=98;//供应链
|
||||
if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) {
|
||||
$where['product_type'] = 98; //供应链
|
||||
}
|
||||
return app('json')->success($this->repository->getList($this->request->merId(),$where, $page, $limit));
|
||||
return app('json')->success($this->repository->getList($this->request->merId(), $where, $page, $limit));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,9 +71,9 @@ class Product extends BaseController
|
||||
*/
|
||||
public function detail($id)
|
||||
{
|
||||
if(!$this->repository->merExists($this->request->merId(),$id))
|
||||
if (!$this->repository->merExists($this->request->merId(), $id))
|
||||
return app('json')->fail('数据不存在');
|
||||
return app('json')->success($this->repository->getAdminOneProduct($id,null));
|
||||
return app('json')->success($this->repository->getAdminOneProduct($id, null));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -85,7 +85,7 @@ class Product extends BaseController
|
||||
public function create()
|
||||
{
|
||||
$params = $this->request->params($this->repository::CREATE_PARAMS);
|
||||
$data = $this->repository->checkParams($params,$this->request->merId());
|
||||
$data = $this->repository->checkParams($params, $this->request->merId());
|
||||
// $cate_id=StoreCategory::where('pid',$data['cate_id'])->where('level',2)->value('store_category_id');
|
||||
// if(!$cate_id){
|
||||
// return app('json')->fail('请先添加第三级分类');
|
||||
@ -97,15 +97,15 @@ class Product extends BaseController
|
||||
$data['status'] = $this->request->merchant()->is_audit ? 0 : 1;
|
||||
$data['mer_status'] = ($this->request->merchant()->is_del || !$this->request->merchant()->mer_state || !$this->request->merchant()->status) ? 0 : 1;
|
||||
$data['rate'] = 3;
|
||||
$typeCode=Db::name('merchant_type')->where('mer_type_id',$this->request->merchant()->type_id)->value('type_code');
|
||||
$typeCode = Db::name('merchant_type')->where('mer_type_id', $this->request->merchant()->type_id)->value('type_code');
|
||||
// if ($this->request->merchant()->type_id==12){
|
||||
if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){
|
||||
$product_type=98;//供应链
|
||||
}else{
|
||||
$product_type=0;//普通商品
|
||||
if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) {
|
||||
$product_type = 98; //供应链
|
||||
} else {
|
||||
$product_type = 0; //普通商品
|
||||
}
|
||||
$data['update_time'] = date('Y-m-d H:i:s');
|
||||
$this->repository->create($data,$product_type,1);
|
||||
$this->repository->create($data, $product_type, 1);
|
||||
return app('json')->success('添加成功');
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ class Product extends BaseController
|
||||
public function update($id)
|
||||
{
|
||||
$params = $this->request->params($this->repository::CREATE_PARAMS);
|
||||
$data = $this->repository->checkParams($params,$this->request->merId(), $id);
|
||||
$data = $this->repository->checkParams($params, $this->request->merId(), $id);
|
||||
if (!$this->repository->merExists($this->request->merId(), $id))
|
||||
return app('json')->fail('数据不存在');
|
||||
$pro = $this->repository->getWhere(['product_id' => $id]);
|
||||
@ -133,7 +133,7 @@ class Product extends BaseController
|
||||
$data['update_time'] = date('Y-m-d H:i:s');
|
||||
$typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id');
|
||||
$productType = $this->request->merchant()->type_id == $typeSupplyChainId ? 98 : 0;
|
||||
$this->repository->edit($id, $data, $this->request->merId(), $productType,1);
|
||||
$this->repository->edit($id, $data, $this->request->merId(), $productType, 1);
|
||||
return app('json')->success('编辑成功');
|
||||
}
|
||||
|
||||
@ -145,9 +145,9 @@ class Product extends BaseController
|
||||
*/
|
||||
public function delete($id)
|
||||
{
|
||||
if(!$this->repository->merExists($this->request->merId(),$id))
|
||||
if (!$this->repository->merExists($this->request->merId(), $id))
|
||||
return app('json')->fail('数据不存在');
|
||||
if($this->repository->getWhereCount(['product_id' => $id,'is_show' => 1,'status' => 1]))
|
||||
if ($this->repository->getWhereCount(['product_id' => $id, 'is_show' => 1, 'status' => 1]))
|
||||
return app('json')->fail('商品上架中');
|
||||
$this->repository->delete($id);
|
||||
//queue(ChangeSpuStatusJob::class,['product_type' => 0,'id' => $id]);
|
||||
@ -157,9 +157,9 @@ class Product extends BaseController
|
||||
|
||||
public function destory($id)
|
||||
{
|
||||
if(!$this->repository->merDeleteExists($this->request->merId(),$id))
|
||||
if (!$this->repository->merDeleteExists($this->request->merId(), $id))
|
||||
return app('json')->fail('只能删除回收站的商品');
|
||||
if(app()->make(StoreCartRepository::class)->getProductById($id))
|
||||
if (app()->make(StoreCartRepository::class)->getProductById($id))
|
||||
return app('json')->fail('商品有被加入购物车不可删除');
|
||||
$this->repository->destory($id);
|
||||
return app('json')->success('删除成功');
|
||||
@ -174,14 +174,14 @@ class Product extends BaseController
|
||||
*/
|
||||
public function getStatusFilter()
|
||||
{
|
||||
$type=$this->request->merchant()['type_id'];
|
||||
$product_type=0;
|
||||
$typeCode=Db::name('merchant_type')->where('mer_type_id',$type)->value('type_code');
|
||||
$type = $this->request->merchant()['type_id'];
|
||||
$product_type = 0;
|
||||
$typeCode = Db::name('merchant_type')->where('mer_type_id', $type)->value('type_code');
|
||||
// if ($type==12){
|
||||
if ($typeCode==Merchant::TypeCode['TypeSupplyChain']){
|
||||
$product_type=98;//供应链
|
||||
if ($typeCode == Merchant::TypeCode['TypeSupplyChain']) {
|
||||
$product_type = 98; //供应链
|
||||
}
|
||||
return app('json')->success($this->repository->getFilter($this->request->merId(),'商品',$product_type));
|
||||
return app('json')->success($this->repository->getFilter($this->request->merId(), '商品', $product_type));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -192,10 +192,10 @@ class Product extends BaseController
|
||||
*/
|
||||
public function config()
|
||||
{
|
||||
$data = systemConfig(['extension_status','svip_switch_status','integral_status']);
|
||||
$merData= merchantConfig($this->request->merId(),['mer_integral_status','mer_integral_rate','mer_svip_status','svip_store_rate']);
|
||||
$svip_store_rate = $merData['svip_store_rate'] > 0 ? bcdiv($merData['svip_store_rate'],100,2) : 0;
|
||||
$data['mer_svip_status'] = ($data['svip_switch_status'] && $merData['mer_svip_status'] != 0 ) ? 1 : 0;
|
||||
$data = systemConfig(['extension_status', 'svip_switch_status', 'integral_status']);
|
||||
$merData = merchantConfig($this->request->merId(), ['mer_integral_status', 'mer_integral_rate', 'mer_svip_status', 'svip_store_rate']);
|
||||
$svip_store_rate = $merData['svip_store_rate'] > 0 ? bcdiv($merData['svip_store_rate'], 100, 2) : 0;
|
||||
$data['mer_svip_status'] = ($data['svip_switch_status'] && $merData['mer_svip_status'] != 0) ? 1 : 0;
|
||||
$data['svip_store_rate'] = $svip_store_rate;
|
||||
$data['integral_status'] = $data['integral_status'] && $merData['mer_integral_status'] ? 1 : 0;
|
||||
$data['integral_rate'] = $merData['mer_integral_rate'] ?: 0;
|
||||
@ -213,7 +213,7 @@ class Product extends BaseController
|
||||
*/
|
||||
public function restore($id)
|
||||
{
|
||||
if(!$this->repository->merDeleteExists($this->request->merId(),$id))
|
||||
if (!$this->repository->merDeleteExists($this->request->merId(), $id))
|
||||
return app('json')->fail('只能恢复回收站的商品');
|
||||
$this->repository->restore($id);
|
||||
return app('json')->success('商品已恢复');
|
||||
@ -235,7 +235,7 @@ class Product extends BaseController
|
||||
public function updateSort($id)
|
||||
{
|
||||
$sort = $this->request->param('sort');
|
||||
$this->repository->updateSort($id,$this->request->merId(),['sort' => $sort]);
|
||||
$this->repository->updateSort($id, $this->request->merId(), ['sort' => $sort]);
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -265,7 +265,7 @@ class Product extends BaseController
|
||||
public function setLabels($id)
|
||||
{
|
||||
$data = $this->request->params(['mer_labels']);
|
||||
app()->make(SpuRepository::class)->setLabels($id,0,$data,$this->request->merId());
|
||||
app()->make(SpuRepository::class)->setLabels($id, 0, $data, $this->request->merId());
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -279,7 +279,7 @@ class Product extends BaseController
|
||||
{
|
||||
$params = [
|
||||
"mer_cate_id",
|
||||
"sort" ,
|
||||
"sort",
|
||||
"is_show",
|
||||
"is_good",
|
||||
"attr",
|
||||
@ -291,12 +291,12 @@ class Product extends BaseController
|
||||
// $count = app()->make(StoreCategoryRepository::class)->getWhereCount(['store_category_id' => $data['mer_cate_id'],'is_show' => 1,'mer_id' => $this->request->merId()]);
|
||||
// if (!$count) throw new ValidateException('商户分类不存在或不可用');
|
||||
$data['status'] = 1;
|
||||
$res=$this->repository->freeTrial($id, $data,$this->request->merId());
|
||||
if($res && $params['is_stock']==1){
|
||||
$arr=[
|
||||
'mer_id'=>$this->request->merId(),
|
||||
'product_id'=>$data['attrValue'][0]['product_id'],
|
||||
'create_time'=>date('Y-m-d H:i:s')
|
||||
$res = $this->repository->freeTrial($id, $data, $this->request->merId());
|
||||
if ($res && $params['is_stock'] == 1) {
|
||||
$arr = [
|
||||
'mer_id' => $this->request->merId(),
|
||||
'product_id' => $data['attrValue'][0]['product_id'],
|
||||
'create_time' => date('Y-m-d H:i:s')
|
||||
];
|
||||
Db::name('store_product_stock')->insert($arr);
|
||||
}
|
||||
@ -313,7 +313,7 @@ class Product extends BaseController
|
||||
public function switchStatus($id)
|
||||
{
|
||||
$status = $this->request->param('status', 0) == 1 ? 1 : 0;
|
||||
$this->repository->switchShow($id, $status,'is_show',$this->request->merId());
|
||||
$this->repository->switchShow($id, $status, 'is_show', $this->request->merId());
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ class Product extends BaseController
|
||||
$ids = $this->request->param('ids');
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
$status = $this->request->param('status') == 1 ? 1 : 0;
|
||||
$this->repository->batchSwitchShow($ids,$status,'is_show',$this->request->merId());
|
||||
$this->repository->batchSwitchShow($ids, $status, 'is_show', $this->request->merId());
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@ class Product extends BaseController
|
||||
public function batchTemplate()
|
||||
{
|
||||
$ids = $this->request->param('ids');
|
||||
$ids = is_array($ids) ? $ids : explode(',',$ids);
|
||||
$ids = is_array($ids) ? $ids : explode(',', $ids);
|
||||
$data = $this->request->params(['temp_id']);
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
if (empty($data['temp_id'])) return app('json')->fail('请选择运费模板');
|
||||
@ -351,7 +351,7 @@ class Product extends BaseController
|
||||
if (!$make->merInExists($this->request->merId(), [$data['temp_id']]))
|
||||
return app('json')->fail('请选择您自己的运费模板');
|
||||
$data['delivery_free'] = 0;
|
||||
$this->repository->updates($ids,$data);
|
||||
$this->repository->updates($ids, $data);
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -368,7 +368,7 @@ class Product extends BaseController
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
if (!$this->repository->merInExists($this->request->merId(), $ids))
|
||||
return app('json')->fail('请选择您自己商品');
|
||||
app()->make(SpuRepository::class)->batchLabels($ids, $data,$this->request->merId());
|
||||
app()->make(SpuRepository::class)->batchLabels($ids, $data, $this->request->merId());
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -385,7 +385,7 @@ class Product extends BaseController
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
if (!$this->repository->merInExists($this->request->merId(), $ids))
|
||||
return app('json')->fail('请选择您自己商品');
|
||||
$this->repository->updates($ids,$data);
|
||||
$this->repository->updates($ids, $data);
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
@ -399,37 +399,83 @@ class Product extends BaseController
|
||||
public function batchExtension(ProductAttrValueRepository $repository)
|
||||
{
|
||||
$ids = $this->request->param('ids');
|
||||
$data = $this->request->params(['extension_one','extension_two']);
|
||||
$data = $this->request->params(['extension_one', 'extension_two']);
|
||||
if ($data['extension_one'] > 1 || $data['extension_one'] < 0 || $data['extension_two'] < 0 || $data['extension_two'] > 1) {
|
||||
return app('json')->fail('比例0~1之间');
|
||||
}
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
if (!$this->repository->merInExists($this->request->merId(), $ids))
|
||||
return app('json')->fail('请选择您自己商品');
|
||||
$repository->updatesExtension($ids,$data);
|
||||
$repository->updatesExtension($ids, $data);
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
public function batchSvipType()
|
||||
{
|
||||
$ids = $this->request->param('ids');
|
||||
$data = $this->request->params([['svip_price_type',0]]);
|
||||
$data = $this->request->params([['svip_price_type', 0]]);
|
||||
|
||||
if (empty($ids)) return app('json')->fail('请选择商品');
|
||||
if (!$this->repository->merInExists($this->request->merId(), $ids))
|
||||
return app('json')->fail('请选择您自己商品');
|
||||
$this->repository->updates($ids,$data);
|
||||
$this->repository->updates($ids, $data);
|
||||
return app('json')->success('修改成功');
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入商品列表管理
|
||||
*/
|
||||
public function xlsx_import_list(){
|
||||
public function xlsx_import_list()
|
||||
{
|
||||
[$page, $limit] = $this->getPage();
|
||||
$select=Db::name('store_product_import')->where('mer_id',$this->request->merId())->page($page)->limit($limit)->select()->toArray();
|
||||
$count=Db::name('store_product_import')->where('mer_id',$this->request->merId())->count();
|
||||
return app('json')->success(['list'=>$select,'count'=>$count]);
|
||||
|
||||
$select = Db::name('store_product_import')->where('mer_id', $this->request->merId())->page($page)->limit($limit)->select()->toArray();
|
||||
$count = Db::name('store_product_import')->where('mer_id', $this->request->merId())->count();
|
||||
return app('json')->success(['list' => $select, 'count' => $count]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 商户添加商品到云仓
|
||||
*/
|
||||
public function add_cloud_product()
|
||||
{
|
||||
$data = $this->request->params(['product_id', 'type', 'is_del']);
|
||||
$res = $this->repository->add_cloud_product($data, $this->request->merchant());
|
||||
if ($res) {
|
||||
return app('json')->success('设置成功');
|
||||
} else {
|
||||
return app('json')->fail('设置失败');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 云仓商品列表
|
||||
*/
|
||||
public function cloud_product_list(){
|
||||
[$page, $limit] = $this->getPage();
|
||||
|
||||
$cloud_product_arr=Db::name('cloud_product')->where('mer_id',$this->request->merId())
|
||||
->page($page)->limit($limit)->field('product_id,mer_labels')->select();
|
||||
$cloud_product = [];
|
||||
foreach ($cloud_product_arr as $key => $value) {
|
||||
$cloud_product[] = $value['product_id'];
|
||||
}
|
||||
$select = Db::name('store_product')->where('mer_id', $this->request->merId())->whereIn('product_id',$cloud_product)->select()->toArray();
|
||||
$count = Db::name('cloud_product')->where('mer_id',$this->request->merId())->count();
|
||||
if ($select) {
|
||||
foreach ($cloud_product_arr as $key => $value) {
|
||||
foreach ($select as $k => $v) {
|
||||
if ($value['product_id'] == $v['product_id']) {
|
||||
if ($value['mer_labels'] == ',5,') {
|
||||
$select[$k]['mer_labels_name'] = '五日达';
|
||||
} else {
|
||||
$select[$k]['mer_labels_name'] = '次日达';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return app('json')->success(['list'=>$select,'count'=>$count]);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,7 +30,9 @@ class ProductLabel extends BaseController
|
||||
{
|
||||
[$page, $limit] = $this->getPage();
|
||||
$where = $this->request->params(['name', 'type', 'status']);
|
||||
$where['mer_id'] = $this->request->merId();
|
||||
if($where['type']!=1){
|
||||
$where['mer_id'] = $this->request->merId();
|
||||
}
|
||||
$data = $this->repository->getList($where,$page, $limit);
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
@ -53,6 +53,7 @@ class ProductCreate
|
||||
$datas = [
|
||||
'product_id' => $product_id,
|
||||
'mer_id' => $merchant['mer_id'],
|
||||
'cate_id' => $product['cate_id'],
|
||||
'source_mer_id' => $cityMerchant['mer_id'],
|
||||
'street_code' => $merchant['street_id'],
|
||||
'type_id' => $merchant['type_id'],
|
||||
|
@ -21,7 +21,7 @@ class MerchantUpdateValidate extends Validate
|
||||
protected $failException = true;
|
||||
|
||||
protected $rule = [
|
||||
'mer_info|店铺简介' => 'require|max:200',
|
||||
// 'mer_info|店铺简介' => 'require|max:200',
|
||||
'mer_avatar|店铺头像' => 'require|max:128',
|
||||
'mer_banner|店铺banner' => 'require|max:128',
|
||||
'mini_banner|店铺街banner' => 'max:128',
|
||||
|
@ -60,7 +60,8 @@
|
||||
"topthink/think-api": "1.0.27",
|
||||
"intervention/image": "^2.7",
|
||||
"fastknife/ajcaptcha": "^1.2",
|
||||
"nelexa/zip": "^4.0"
|
||||
"nelexa/zip": "^4.0",
|
||||
"alibabacloud/ocr-20191230": "^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/var-dumper": "^4.2",
|
||||
|
256
composer.lock
generated
256
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "60838a051e04cfb13dd75049f7540171",
|
||||
"content-hash": "58b44ebbb4f75dc8b47bcaa0ae8327f7",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adbario/php-dot-notation",
|
||||
@ -252,6 +252,59 @@
|
||||
"description": "Alibaba Cloud Gateway SPI Client",
|
||||
"time": "2022-07-14T05:31:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/ocr-20191230",
|
||||
"version": "3.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/Ocr-20191230.git",
|
||||
"reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/Ocr-20191230/zipball/8d7ad521074b2fd6c392cf0f2b114ce43f0612b8",
|
||||
"reference": "8d7ad521074b2fd6c392cf0f2b114ce43f0612b8",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/darabonba-openapi": "^0.2.8",
|
||||
"alibabacloud/endpoint-util": "^0.1.0",
|
||||
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
|
||||
"alibabacloud/openplatform-20191219": "^2.0.1",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/tea-oss-sdk": "^0.3.0",
|
||||
"alibabacloud/tea-oss-utils": "^0.3.1",
|
||||
"alibabacloud/tea-utils": "^0.2.19",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud OCR (20191230) SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/Ocr-20191230/tree/3.0.0"
|
||||
},
|
||||
"time": "2023-07-04T02:18:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/openapi-util",
|
||||
"version": "0.1.13",
|
||||
@ -288,6 +341,55 @@
|
||||
"description": "Alibaba Cloud OpenApi Util",
|
||||
"time": "2022-11-06T05:49:55+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/openplatform-20191219",
|
||||
"version": "2.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219.git",
|
||||
"reference": "02ffa72369f8649214f1cfa336b52a544735f517"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/OpenPlatform-20191219/zipball/02ffa72369f8649214f1cfa336b52a544735f517",
|
||||
"reference": "02ffa72369f8649214f1cfa336b52a544735f517",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/darabonba-openapi": "^0.2.8",
|
||||
"alibabacloud/endpoint-util": "^0.1.0",
|
||||
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
|
||||
"alibabacloud/tea-utils": "^0.2.17",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\OpenPlatform\\V20191219\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud OpenPlatform (20191219) SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/OpenPlatform-20191219/tree/2.0.1"
|
||||
},
|
||||
"time": "2023-02-07T06:39:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea",
|
||||
"version": "3.2.1",
|
||||
@ -343,6 +445,156 @@
|
||||
],
|
||||
"time": "2023-05-16T06:43:41+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-fileform",
|
||||
"version": "0.3.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-fileform.git",
|
||||
"reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-fileform/zipball/4bf0c75a045c8115aa8cb1a394bd08d8bb833181",
|
||||
"reference": "4bf0c75a045c8115aa8cb1a394bd08d8bb833181",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/tea": "^3.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\FileForm\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud Tea File Library for PHP",
|
||||
"support": {
|
||||
"issues": "https://github.com/alibabacloud-sdk-php/tea-fileform/issues",
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-fileform/tree/0.3.4"
|
||||
},
|
||||
"time": "2020-12-01T07:24:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-oss-sdk",
|
||||
"version": "0.3.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk.git",
|
||||
"reference": "e28e70e2842b2e4da031a774209231bf08d7965c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-sdk/zipball/e28e70e2842b2e4da031a774209231bf08d7965c",
|
||||
"reference": "e28e70e2842b2e4da031a774209231bf08d7965c",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/credentials": "^1.1",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/tea-oss-utils": "^0.3.0",
|
||||
"alibabacloud/tea-utils": "^0.2.0",
|
||||
"alibabacloud/tea-xml": "^0.2",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\OSS\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Aliyun Tea OSS SDK Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-oss-sdk/tree/0.3.6"
|
||||
},
|
||||
"time": "2022-10-13T07:23:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-oss-utils",
|
||||
"version": "0.3.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/alibabacloud-sdk-php/tea-oss-utils.git",
|
||||
"reference": "19f58fc509347f075664e377742d4f9e18465372"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-oss-utils/zipball/19f58fc509347f075664e377742d4f9e18465372",
|
||||
"reference": "19f58fc509347f075664e377742d4f9e18465372",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"alibabacloud/tea": "^3.0",
|
||||
"guzzlehttp/psr7": "^1.0",
|
||||
"php": ">5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35|^5.4.3|^9.4"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\Tea\\OSSUtils\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"description": "Alibaba Cloud Tea OSS Utils Library for PHP",
|
||||
"support": {
|
||||
"source": "https://github.com/alibabacloud-sdk-php/tea-oss-utils/tree/0.3.1"
|
||||
},
|
||||
"time": "2023-01-08T13:26:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "alibabacloud/tea-utils",
|
||||
"version": "0.2.19",
|
||||
@ -5053,5 +5305,5 @@
|
||||
"ext-swoole": "^4.4.0"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.3.0"
|
||||
"plugin-api-version": "2.1.0"
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
.title[data-v-3500ed7a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-3500ed7a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-3cd1b9b0] .el-cascader{display:block}.dialog-scustom[data-v-3cd1b9b0]{width:1200px;height:600px}.ela-btn[data-v-3cd1b9b0]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-3cd1b9b0]{margin-right:25px}.Box .numPut[data-v-3cd1b9b0]{width:80%!important}.lunBox[data-v-3cd1b9b0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-3cd1b9b0]{display:inline-block}.pictrue[data-v-3cd1b9b0]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-3cd1b9b0]{width:100%;height:100%}.pictrueTab[data-v-3cd1b9b0]{width:40px!important;height:40px!important}.upLoad[data-v-3cd1b9b0]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-3cd1b9b0]{color:red}.buttonGroup[data-v-3cd1b9b0]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-3cd1b9b0]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-3cd1b9b0]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-3cd1b9b0]{border:1px solid #1890ff}.virtual_boder2[data-v-3cd1b9b0]{border:1px solid #e7e7e7}.virtual_san[data-v-3cd1b9b0]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-3cd1b9b0]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-3cd1b9b0]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-3cd1b9b0]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-3cd1b9b0]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-3cd1b9b0]:nth-child(2n){margin:0 12px}[data-v-7d87bc0d] .el-cascader{display:block}.ela-btn[data-v-7d87bc0d]{color:#2d8cf0}.priceBox[data-v-7d87bc0d]{width:80px}.pictrue[data-v-7d87bc0d]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-7d87bc0d]{width:100%;height:100%}[data-v-7d87bc0d] .el-input-number__decrease,[data-v-7d87bc0d] .el-input-number__increase{display:none}[data-v-7d87bc0d] .el-input-number.is-controls-right .el-input__inner,[data-v-7d87bc0d] .el-input__inner{padding:0 5px}.pictrueTab[data-v-7d87bc0d]{width:40px!important;height:40px!important}.upLoad[data-v-7d87bc0d]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.bg[data-v-82d6320e]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-82d6320e]{z-index:-10}[data-v-82d6320e] table.el-input__inner{padding:0}.demo-table-expand[data-v-82d6320e]{font-size:0}.demo-table-expand1[data-v-82d6320e] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-82d6320e]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-82d6320e]{width:350px!important}.seachTiele[data-v-82d6320e]{line-height:35px}
|
||||
.title[data-v-3500ed7a]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-3500ed7a]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-3cd1b9b0] .el-cascader{display:block}.dialog-scustom[data-v-3cd1b9b0]{width:1200px;height:600px}.ela-btn[data-v-3cd1b9b0]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-3cd1b9b0]{margin-right:25px}.Box .numPut[data-v-3cd1b9b0]{width:80%!important}.lunBox[data-v-3cd1b9b0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-3cd1b9b0]{display:inline-block}.pictrue[data-v-3cd1b9b0]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-3cd1b9b0]{width:100%;height:100%}.pictrueTab[data-v-3cd1b9b0]{width:40px!important;height:40px!important}.upLoad[data-v-3cd1b9b0]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-3cd1b9b0]{color:red}.buttonGroup[data-v-3cd1b9b0]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-3cd1b9b0]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-3cd1b9b0]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-3cd1b9b0]{border:1px solid #1890ff}.virtual_boder2[data-v-3cd1b9b0]{border:1px solid #e7e7e7}.virtual_san[data-v-3cd1b9b0]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-3cd1b9b0]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-3cd1b9b0]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-3cd1b9b0]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-3cd1b9b0]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-3cd1b9b0]:nth-child(2n){margin:0 12px}[data-v-7d87bc0d] .el-cascader{display:block}.ela-btn[data-v-7d87bc0d]{color:#2d8cf0}.priceBox[data-v-7d87bc0d]{width:80px}.pictrue[data-v-7d87bc0d]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-7d87bc0d]{width:100%;height:100%}[data-v-7d87bc0d] .el-input-number__decrease,[data-v-7d87bc0d] .el-input-number__increase{display:none}[data-v-7d87bc0d] .el-input-number.is-controls-right .el-input__inner,[data-v-7d87bc0d] .el-input__inner{padding:0 5px}.pictrueTab[data-v-7d87bc0d]{width:40px!important;height:40px!important}.upLoad[data-v-7d87bc0d]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.bg[data-v-6c0d84ec]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-6c0d84ec]{z-index:-10}[data-v-6c0d84ec] table.el-input__inner{padding:0}.demo-table-expand[data-v-6c0d84ec]{font-size:0}.demo-table-expand1[data-v-6c0d84ec] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-6c0d84ec]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-6c0d84ec]{width:350px!important}.seachTiele[data-v-6c0d84ec]{line-height:35px}
|
1
public/mer/css/chunk-b62bf9da.fc476d73.css
Normal file
1
public/mer/css/chunk-b62bf9da.fc476d73.css
Normal file
@ -0,0 +1 @@
|
||||
.selWidth[data-v-2b71738f]{width:360px!important}.seachTiele[data-v-2b71738f]{line-height:35px}.fr[data-v-2b71738f]{float:right}.bg[data-v-38890f86]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-38890f86]{z-index:-10}[data-v-38890f86] table.el-input__inner{padding:0}.demo-table-expand[data-v-38890f86]{font-size:0}.demo-table-expand1[data-v-38890f86] label{width:77px!important;color:#99a9bf}.demo-table-expand .el-form-item[data-v-38890f86]{margin-right:0;margin-bottom:0;width:33.33%}.selWidth[data-v-38890f86]{width:350px!important}.seachTiele[data-v-38890f86]{line-height:35px}
|
File diff suppressed because one or more lines are too long
1
public/mer/js/chunk-01454a3c.261615ee.js
Normal file
1
public/mer/js/chunk-01454a3c.261615ee.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d2c1415","chunk-2d0da983"],{4553:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},a=[],n=(i("7f7f"),i("c4c8")),s=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["fb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("<video src='"+this.formValidate.video_link+"' controls='controls'></video>",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),r=s,d=(i("8307"),i("2877")),l=Object(d["a"])(r,o,a,!1,null,"732b6bbd",null);t["default"]=l.exports},"6bef":function(e,t,i){"use strict";i.r(t);i("28a5"),i("a481");(function(){if(window.frameElement&&window.frameElement.id){var e=window.parent,t=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],i=t.editor,o=e.UE,a=o.dom.domUtils,n=o.utils,s=(o.browser,o.ajax,function(e){return document.getElementById(e)});window.nowEditor={editor:i,dialog:t},n.loadFile(document,{href:i.options.themePath+i.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var r=i.getLang(t.className.split("-")[2]);r&&a.on(window,"load",(function(){var e=i.options.langPath+i.options.lang+"/images/";for(var t in r["static"]){var o=s(t);if(o){var d=o.tagName,l=r["static"][t];switch(l.src&&(l=n.extend({},l,!1),l.src=e+l.src),l.style&&(l=n.extend({},l,!1),l.style=l.style.replace(/url\s*\(/g,"url("+e)),d.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(l),o);break;case"select":for(var c,u=o.options,v=0;c=u[v];)c.innerHTML=l.options[v++];for(var f in l)"options"!=f&&o.setAttribute(f,l[f]);break;default:a.setAttributes(o,l)}}}}))}})()},8307:function(e,t,i){"use strict";i("f5ee")},f5ee:function(e,t,i){}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d2c1415","chunk-2d0da983"],{4553:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},a=[],n=(i("7f7f"),i("c4c8")),s=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["hb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("<video src='"+this.formValidate.video_link+"' controls='controls'></video>",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),r=s,d=(i("8307"),i("2877")),l=Object(d["a"])(r,o,a,!1,null,"732b6bbd",null);t["default"]=l.exports},"6bef":function(e,t,i){"use strict";i.r(t);i("28a5"),i("a481");(function(){if(window.frameElement&&window.frameElement.id){var e=window.parent,t=e.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],i=t.editor,o=e.UE,a=o.dom.domUtils,n=o.utils,s=(o.browser,o.ajax,function(e){return document.getElementById(e)});window.nowEditor={editor:i,dialog:t},n.loadFile(document,{href:i.options.themePath+i.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var r=i.getLang(t.className.split("-")[2]);r&&a.on(window,"load",(function(){var e=i.options.langPath+i.options.lang+"/images/";for(var t in r["static"]){var o=s(t);if(o){var d=o.tagName,l=r["static"][t];switch(l.src&&(l=n.extend({},l,!1),l.src=e+l.src),l.style&&(l=n.extend({},l,!1),l.style=l.style.replace(/url\s*\(/g,"url("+e)),d.toLowerCase()){case"var":o.parentNode.replaceChild(document.createTextNode(l),o);break;case"select":for(var c,u=o.options,v=0;c=u[v];)c.innerHTML=l.options[v++];for(var p in l)"options"!=p&&o.setAttribute(p,l[p]);break;default:a.setAttributes(o,l)}}}}))}})()},8307:function(e,t,i){"use strict";i("f5ee")},f5ee:function(e,t,i){}}]);
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c212a"],{"496e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加商品规格")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"attr_template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"规格名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("span",{key:n,staticClass:"mr10",domProps:{textContent:t._s(e.value)}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品属性","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("div",{key:n,domProps:{textContent:t._s(e.detail.join(","))}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.attr_template_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],l=a("c4c8"),s={name:"ProductAttr",data:function(){return{formDynamic:{template_name:"",template_value:[]},tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{add:function(){var t=this;t.formDynamic={template_name:"",template_value:[]},this.$modalAttr(Object.assign({},t.formDynamic),(function(){t.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(l["Ob"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(l["k"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEdit:function(t){var e=this;this.$modalAttr(JSON.parse(JSON.stringify(t)),(function(){e.getList(),this.formDynamic={template_name:"",template_value:[]}}))}}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c212a"],{"496e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加商品规格")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"attr_template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"规格名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品规格","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("span",{key:n,staticClass:"mr10",domProps:{textContent:t._s(e.value)}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品属性","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.template_value,(function(e,n){return a("div",{key:n,domProps:{textContent:t._s(e.detail.join(","))}})}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.attr_template_id,e.$index)}}},[t._v("删除\n ")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],l=a("c4c8"),s={name:"ProductAttr",data:function(){return{formDynamic:{template_name:"",template_value:[]},tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList()},methods:{add:function(){var t=this;t.formDynamic={template_name:"",template_value:[]},this.$modalAttr(Object.assign({},t.formDynamic),(function(){t.getList()}))},getList:function(){var t=this;this.listLoading=!0,Object(l["Qb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(l["l"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onEdit:function(t){var e=this;this.$modalAttr(JSON.parse(JSON.stringify(t)),(function(){e.getList(),this.formDynamic={template_name:"",template_value:[]}}))}}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]);
|
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d209391"],{a7af:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"label_name",label:"标签名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"标签说明","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c4c8"),l={name:"LabelList",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList("")},methods:{add:function(){},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["L"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(s["J"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["N"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(s["K"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["M"])(t.product_label_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},o=l,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d209391"],{a7af:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商品标签")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"label_name",label:"标签名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"标签说明","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.product_label_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_label_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],s=a("c4c8"),l={name:"LabelList",data:function(){return{tableFrom:{page:1,limit:20},tableData:{data:[],total:0},listLoading:!0}},mounted:function(){this.getList("")},methods:{add:function(){},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["N"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(s["L"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["P"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该标签").then((function(){Object(s["M"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["O"])(t.product_label_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},o=l,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]);
|
1
public/mer/js/chunk-34ab329b.b1fcc2ff.js
Normal file
1
public/mer/js/chunk-34ab329b.b1fcc2ff.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-412d33f7"],{"12e6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.template_name,callback:function(e){t.$set(t.tableFrom,"template_name",e)},expression:"tableFrom.template_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加参数模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"参数模板名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetail(e.row.template_id)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},t._l(t.specsInfo.parameter,(function(e,i){return a("div",{key:i,staticClass:"description-term"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])])])],1)},n=[],s=(a("ac6a"),a("83d6")),l=a("c4c8"),o={name:"SpecsList",data:function(){return{listLoading:!0,cateList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},specsInfo:{},dialogVisible:!1,title:""}},mounted:function(){this.getCategorySelect(),this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["mb"])(this.tableFrom).then((function(t){t.data.list.forEach((function(t,e){t.cate_name=[],t.cateId.forEach((function(e,a){t.cate_name.push(e.category.cate_name)}))})),e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},getCategorySelect:function(){var t=this;Object(l["q"])().then((function(e){t.cateList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAdd:function(){this.$router.push("".concat(s["roterPre"],"/product/specs/create"))},onEdit:function(t){this.$router.push("".concat(s["roterPre"],"/product/specs/create/").concat(t))},onDetail:function(t){var e=this;Object(l["zb"])(t).then((function(t){e.specsInfo=t.data,e.title=t.data.template_name,e.dialogVisible=!0})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("确定删除该模板").then((function(){Object(l["Ab"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},c=o,r=(a("b28c"),a("2877")),u=Object(r["a"])(c,i,n,!1,null,"8e659c8e",null);e["default"]=u.exports},"5ef1":function(t,e,a){},b28c:function(t,e,a){"use strict";a("5ef1")}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-412d33f7"],{"12e6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{attrs:{inline:"",size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.template_name,callback:function(e){t.$set(t.tableFrom,"template_name",e)},expression:"tableFrom.template_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加参数模板")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"template_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"template_name",label:"参数模板名称","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.template_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetail(e.row.template_id)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.template_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},t._l(t.specsInfo.parameter,(function(e,i){return a("div",{key:i,staticClass:"description-term"},[a("span",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.value))])])})),0)])])])],1)},n=[],s=(a("ac6a"),a("83d6")),l=a("c4c8"),o={name:"SpecsList",data:function(){return{listLoading:!0,cateList:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:20},specsInfo:{},dialogVisible:!1,title:""}},mounted:function(){this.getCategorySelect(),this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["ob"])(this.tableFrom).then((function(t){t.data.list.forEach((function(t,e){t.cate_name=[],t.cateId.forEach((function(e,a){t.cate_name.push(e.category.cate_name)}))})),e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},getCategorySelect:function(){var t=this;Object(l["r"])().then((function(e){t.cateList=e.data})).catch((function(e){t.$message.error(e.message)}))},onAdd:function(){this.$router.push("".concat(s["roterPre"],"/product/specs/create"))},onEdit:function(t){this.$router.push("".concat(s["roterPre"],"/product/specs/create/").concat(t))},onDetail:function(t){var e=this;Object(l["Bb"])(t).then((function(t){e.specsInfo=t.data,e.title=t.data.template_name,e.dialogVisible=!0})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(t,e){var a=this;this.$modalSure("确定删除该模板").then((function(){Object(l["Cb"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},c=o,r=(a("b28c"),a("2877")),u=Object(r["a"])(c,i,n,!1,null,"8e659c8e",null);e["default"]=u.exports},"5ef1":function(t,e,a){},b28c:function(t,e,a){"use strict";a("5ef1")}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/mer/js/chunk-68370b84.fbb92026.js
Normal file
1
public/mer/js/chunk-68370b84.fbb92026.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0fbc2e4"],{3480:function(e,t,a){"use strict";a("f095")},9809:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{ref:"formValidate",attrs:{"label-width":"120px",rules:e.ruleValidate,model:e.formValidate}},[a("el-form-item",{attrs:{label:"参数模板名称:",prop:"template_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},model:{value:e.formValidate.template_name,callback:function(t){e.$set(e.formValidate,"template_name",t)},expression:"formValidate.template_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{label:"排序"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data,border:"",size:"small"}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"参数名称","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数值"},model:{value:t.row.value,callback:function(a){e.$set(t.row,"value",a)},expression:"scope.row.value"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"排序","min-width":"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return e.delSpecs(t.$index)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onAdd}},[e._v("添加参数")])],1)],1)],1)])])]),e._v(" "),a("el-card",[a("el-form",[a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("保存")])],1)],1)],1)],1)},s=[],l=(a("7f7f"),a("c4c8")),o=a("83d6"),n={name:"specsCreate",data:function(){return{listLoading:!0,ruleValidate:{template_name:[{required:!0,message:"请输入参数模板名称",trigger:"blur"}]},data:[],cateList:[],formValidate:{sort:0}}},created:function(){this.onAdd(),this.$route.params.id&&this.getInfo()},mounted:function(){},methods:{onAdd:function(){var e={name:"",value:"",sort:0,parameter_id:0};this.data.push(e)},onEdit:function(e){var t=this;this.$modalForm(levelUpdateApi(e)).then((function(){return t.getList("")}))},getInfo:function(){var e=this;Object(l["lb"])(this.$route.params.id).then((function(t){e.formValidate=t.data,e.data=t.data.parameter}))},delSpecs:function(e){this.data.splice(e,1)},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){t.formValidate.params=t.data;for(var a=0;a<t.formValidate.params.length;a++){var r=t.formValidate.params[a];if(!r.name.trim())return t.$message.error("请输入参数名称");if(!r.value.trim())return t.$message.error("请输入参数值")}t.$route.params.id?Object(l["Cb"])(t.$route.params.id,t.formValidate).then((function(e){t.$message.success(e.message),t.$router.push({path:"".concat(o["roterPre"],"/product/specs")})})).catch((function(e){t.$message.error(e.message)})):Object(l["jb"])(t.formValidate).then((function(e){t.$message.success(e.message),t.$router.push({path:"".concat(o["roterPre"],"/product/specs")})})).catch((function(e){t.$message.error(e.message)}))}else t.$message.error("请输入参数模板名称")}))}}},i=n,c=(a("3480"),a("2877")),u=Object(c["a"])(i,r,s,!1,null,"2fe27228",null);t["default"]=u.exports},f095:function(e,t,a){}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0fbc2e4"],{3480:function(e,t,a){"use strict";a("f095")},9809:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("el-form",{ref:"formValidate",attrs:{"label-width":"120px",rules:e.ruleValidate,model:e.formValidate}},[a("el-form-item",{attrs:{label:"参数模板名称:",prop:"template_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入参数模板名称"},model:{value:e.formValidate.template_name,callback:function(t){e.$set(e.formValidate,"template_name",t)},expression:"formValidate.template_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{label:"排序"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data,border:"",size:"small"}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"参数名称","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{placeholder:"请输入参数值"},model:{value:t.row.value,callback:function(a){e.$set(t.row,"value",a)},expression:"scope.row.value"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"排序","min-width":"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return e.delSpecs(t.$index)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onAdd}},[e._v("添加参数")])],1)],1)],1)])])]),e._v(" "),a("el-card",[a("el-form",[a("el-form-item",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("保存")])],1)],1)],1)],1)},s=[],l=(a("7f7f"),a("c4c8")),o=a("83d6"),n={name:"specsCreate",data:function(){return{listLoading:!0,ruleValidate:{template_name:[{required:!0,message:"请输入参数模板名称",trigger:"blur"}]},data:[],cateList:[],formValidate:{sort:0}}},created:function(){this.onAdd(),this.$route.params.id&&this.getInfo()},mounted:function(){},methods:{onAdd:function(){var e={name:"",value:"",sort:0,parameter_id:0};this.data.push(e)},onEdit:function(e){var t=this;this.$modalForm(levelUpdateApi(e)).then((function(){return t.getList("")}))},getInfo:function(){var e=this;Object(l["nb"])(this.$route.params.id).then((function(t){e.formValidate=t.data,e.data=t.data.parameter}))},delSpecs:function(e){this.data.splice(e,1)},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){t.formValidate.params=t.data;for(var a=0;a<t.formValidate.params.length;a++){var r=t.formValidate.params[a];if(!r.name.trim())return t.$message.error("请输入参数名称");if(!r.value.trim())return t.$message.error("请输入参数值")}t.$route.params.id?Object(l["Eb"])(t.$route.params.id,t.formValidate).then((function(e){t.$message.success(e.message),t.$router.push({path:"".concat(o["roterPre"],"/product/specs")})})).catch((function(e){t.$message.error(e.message)})):Object(l["lb"])(t.formValidate).then((function(e){t.$message.success(e.message),t.$router.push({path:"".concat(o["roterPre"],"/product/specs")})})).catch((function(e){t.$message.error(e.message)}))}else t.$message.error("请输入参数模板名称")}))}}},i=n,c=(a("3480"),a("2877")),u=Object(c["a"])(i,r,s,!1,null,"2fe27228",null);t["default"]=u.exports},f095:function(e,t,a){}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/mer/js/chunk-b62bf9da.2e44e46a.js
Normal file
1
public/mer/js/chunk-b62bf9da.2e44e46a.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -21,6 +21,7 @@ use think\facade\Route;
|
||||
|
||||
Route::group('api/', function () {
|
||||
Route::any('test', 'api.Auth/test');
|
||||
Route::get('label_lst', 'api.Common/label_lst');
|
||||
Route::any('system_group_value', 'api.Common/system_group_value');
|
||||
Route::any('demo_ceshi', 'api.Demo/index');
|
||||
Route::any('dotest', 'api.Auth/dotest');
|
||||
@ -44,6 +45,8 @@ Route::group('api/', function () {
|
||||
//强制登录
|
||||
Route::group(function () {
|
||||
|
||||
Route::post('merchant_license_identify', 'api.Common/merchant_license_identify');//营业执照识别
|
||||
|
||||
Route::post('user_free_trial/:id', 'api.store.product.StoreProduct/UserFreeTrial')->option([
|
||||
'_alias' => '免审编辑',
|
||||
]);
|
||||
@ -302,7 +305,8 @@ Route::group('api/', function () {
|
||||
Route::post('product/good/:id', 'StoreProduct/updateGood');
|
||||
Route::get('product/config', 'StoreProduct/config');
|
||||
Route::post('product/stockIn', 'StoreProduct/stockIn');
|
||||
|
||||
Route::post('product/add_cloud_product', 'StoreProduct/add_cloud_product');
|
||||
Route::get('product/cloud_product_list', 'StoreProduct/cloud_product_list');
|
||||
//商品分类
|
||||
Route::get('category/lst', 'StoreCategory/lst');
|
||||
Route::post('category/create', 'StoreCategory/create');
|
||||
@ -734,6 +738,13 @@ Route::group('api/', function () {
|
||||
Route::get('supply_chain_breeding_street_product_count', '/SupplyChainBreedingStreetProductCount');
|
||||
Route::get('supply_chain_village_breeding_price_count', '/SupplyChainVillageBreedingPriceCount');
|
||||
Route::get('store_order_user_trade_amount', '/StoreOrderUserTradeAmount');
|
||||
Route::get('supply_chain_merchant', '/SupplyChainMerchant');
|
||||
Route::get('general_merchant', '/GeneralMerchant');
|
||||
Route::get('supply_chain_product', '/SupplyChainProduct');
|
||||
Route::get('general_merchant_product', '/GeneralMerchantProduct');
|
||||
Route::get('supply_chain_product_stock_count1', '/SupplyChainProductStockCount1');
|
||||
Route::get('product_stock_count1', '/ProductStockCount1');
|
||||
Route::get('supply_chain_product_price', '/SupplyChainProductPrice');
|
||||
})->prefix('api.Statistics');
|
||||
|
||||
//滑块验证码
|
||||
|
@ -204,6 +204,12 @@ Route::group(function () {
|
||||
Route::post('labels/:id', '/setLabels')->name('merchantStoreProductLabels')->option([
|
||||
'_alias' => '标签',
|
||||
]);
|
||||
Route::post('add_cloud_product', '/add_cloud_product')->option([
|
||||
'_alias' => '商户设置云商品',
|
||||
]);
|
||||
Route::get('cloud_product_list', '/cloud_product_list')->option([
|
||||
'_alias' => '云商品列表',
|
||||
]);
|
||||
Route::get('attr_value/:id', '/getAttrValue')->name('merchantStoreProductAttrValue')->option([
|
||||
'_alias' => '获取规格',
|
||||
]);
|
||||
|
15
vendor/alibabacloud/ocr-20191230/.gitignore
vendored
Normal file
15
vendor/alibabacloud/ocr-20191230/.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
composer.phar
|
||||
/vendor/
|
||||
|
||||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
|
||||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
|
||||
composer.lock
|
||||
|
||||
.vscode/
|
||||
.idea
|
||||
.DS_Store
|
||||
|
||||
cache/
|
||||
*.cache
|
||||
runtime/
|
||||
.php_cs.cache
|
65
vendor/alibabacloud/ocr-20191230/.php_cs.dist
vendored
Normal file
65
vendor/alibabacloud/ocr-20191230/.php_cs.dist
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* This document has been generated with
|
||||
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15|configurator
|
||||
* you can change this configuration by importing this file.
|
||||
*/
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRiskyAllowed(true)
|
||||
->setIndent(' ')
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'@PhpCsFixer' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'array_indentation' => true,
|
||||
'combine_consecutive_unsets' => true,
|
||||
'method_separation' => true,
|
||||
'single_quote' => true,
|
||||
'declare_equal_normalize' => true,
|
||||
'function_typehint_space' => true,
|
||||
'hash_to_slash_comment' => true,
|
||||
'include' => true,
|
||||
'lowercase_cast' => true,
|
||||
'no_multiline_whitespace_before_semicolons' => true,
|
||||
'no_leading_import_slash' => true,
|
||||
'no_multiline_whitespace_around_double_arrow' => true,
|
||||
'no_spaces_around_offset' => true,
|
||||
'no_unneeded_control_parentheses' => true,
|
||||
'no_unused_imports' => true,
|
||||
'no_whitespace_before_comma_in_array' => true,
|
||||
'no_whitespace_in_blank_line' => true,
|
||||
'object_operator_without_whitespace' => true,
|
||||
'single_blank_line_before_namespace' => true,
|
||||
'single_class_element_per_statement' => true,
|
||||
'space_after_semicolon' => true,
|
||||
'standardize_not_equals' => true,
|
||||
'ternary_operator_spaces' => true,
|
||||
'trailing_comma_in_multiline_array' => true,
|
||||
'trim_array_spaces' => true,
|
||||
'unary_operator_spaces' => true,
|
||||
'whitespace_after_comma_in_array' => true,
|
||||
'no_extra_consecutive_blank_lines' => [
|
||||
'curly_brace_block',
|
||||
'extra',
|
||||
'parenthesis_brace_block',
|
||||
'square_brace_block',
|
||||
'throw',
|
||||
'use',
|
||||
],
|
||||
'binary_operator_spaces' => [
|
||||
'align_double_arrow' => true,
|
||||
'align_equals' => true,
|
||||
],
|
||||
'braces' => [
|
||||
'allow_single_line_closure' => true,
|
||||
],
|
||||
])
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
->exclude('vendor')
|
||||
->exclude('tests')
|
||||
->in(__DIR__)
|
||||
);
|
70
vendor/alibabacloud/ocr-20191230/ChangeLog.md
vendored
Normal file
70
vendor/alibabacloud/ocr-20191230/ChangeLog.md
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
2023-07-04 Version: 3.0.0
|
||||
- Update TrimDocument.
|
||||
- Update RecognizeTakeoutOrder.
|
||||
- Update RecognizePassportMRZ.
|
||||
- Update RecognizeChinapassport.
|
||||
- Update DetectCardScreenshot.
|
||||
- Update RecognizeVerificationcode.
|
||||
- Update RecognizePoiName.
|
||||
- Update RecognizeAccountPage.
|
||||
|
||||
2023-02-16 Version: 2.0.17
|
||||
- Update RecognizeVideoCharacter.
|
||||
|
||||
2023-01-13 Version: 2.0.16
|
||||
- Update sdk.
|
||||
|
||||
2023-01-11 Version: 2.0.15
|
||||
- Update sdk.
|
||||
|
||||
2023-01-05 Version: 2.0.14
|
||||
- Release RecognizeVATInvoice.
|
||||
|
||||
2022-11-10 Version: 2.0.13
|
||||
- Release RecognizeVATInvoice.
|
||||
|
||||
2022-10-17 Version: 2.0.12
|
||||
- Release RecognizeVATInvoice.
|
||||
|
||||
2022-10-14 Version: 2.0.11
|
||||
- Release RecognizeVATInvoice.
|
||||
|
||||
2022-06-21 Version: 2.0.10
|
||||
- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeUkraineIdentityCard RecognizeVietnamIdentityCard.
|
||||
|
||||
2022-05-25 Version: 2.0.9
|
||||
- Release RecognizeTurkeyIdentityCard RecognizeMalaysiaIdentityCard RecognizeRussiaIdentityCard RecognizeIndonesiaIdentityCard RecognizeIndonesiaIdentityCard.
|
||||
|
||||
2022-05-05 Version: 2.0.8
|
||||
- Release RecognizeUkraineIdentityCard.
|
||||
|
||||
2022-03-09 Version: 2.0.7
|
||||
- Release RecognizeVideoCastCrewList.
|
||||
|
||||
2022-03-03 Version: 2.0.6
|
||||
- RecognizeVideoCharacter add output field inputFile.
|
||||
|
||||
2021-12-15 Version: 2.0.5
|
||||
- RecognizeVideoCharacter add output field inputFile.
|
||||
|
||||
2021-11-23 Version: 1.0.5
|
||||
- Update RecognizeCharacter.
|
||||
|
||||
2021-07-02 Version: 1.0.4
|
||||
- Release RecognizeQuotaInvoice RecognizeTicketInvoice RecognizePdf.
|
||||
|
||||
2021-05-10 Version: 1.0.3
|
||||
- Update RecognizeDriverLicense RecognizeLicensePlate.
|
||||
|
||||
2021-03-25 Version: 1.0.2
|
||||
- Generated php 2019-12-30 for ocr.
|
||||
|
||||
2021-03-04 Version: 1.0.1
|
||||
- Update Ocr.
|
||||
|
||||
2021-01-29 Version: 1.0.0
|
||||
- Generated php 2019-12-30 for ocr.
|
||||
|
||||
2020-11-13 Version: 0.1.16
|
||||
- Release DetectCardScreenshot RecognizePoiName.
|
||||
|
201
vendor/alibabacloud/ocr-20191230/LICENSE
vendored
Normal file
201
vendor/alibabacloud/ocr-20191230/LICENSE
vendored
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
35
vendor/alibabacloud/ocr-20191230/README-CN.md
vendored
Normal file
35
vendor/alibabacloud/ocr-20191230/README-CN.md
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
[English](README.md) | 简体中文
|
||||
|
||||

|
||||
|
||||
# Alibaba Cloud ocr SDK for PHP
|
||||
|
||||
## 安装
|
||||
|
||||
### Composer
|
||||
|
||||
```bash
|
||||
composer require alibabacloud/ocr-20191230
|
||||
```
|
||||
|
||||
## 问题
|
||||
|
||||
[提交 Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new),不符合指南的问题可能会立即关闭。
|
||||
|
||||
## 使用说明
|
||||
|
||||
[快速使用](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-CN.md#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8)
|
||||
|
||||
## 发行说明
|
||||
|
||||
每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。
|
||||
|
||||
## 相关
|
||||
|
||||
* [最新源码](https://github.com/aliyun/alibabacloud-php-sdk/)
|
||||
|
||||
## 许可证
|
||||
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
35
vendor/alibabacloud/ocr-20191230/README.md
vendored
Normal file
35
vendor/alibabacloud/ocr-20191230/README.md
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
English | [简体中文](README-CN.md)
|
||||
|
||||

|
||||
|
||||
# Alibaba Cloud ocr SDK for PHP
|
||||
|
||||
## Installation
|
||||
|
||||
### Composer
|
||||
|
||||
```bash
|
||||
composer require alibabacloud/ocr-20191230
|
||||
```
|
||||
|
||||
## Issues
|
||||
|
||||
[Opening an Issue](https://github.com/aliyun/alibabacloud-php-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
|
||||
|
||||
## Usage
|
||||
|
||||
[Quick Examples](https://github.com/aliyun/alibabacloud-php-sdk/blob/master/docs/0-Examples-EN.md#quick-examples)
|
||||
|
||||
## Changelog
|
||||
|
||||
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
|
||||
|
||||
## References
|
||||
|
||||
* [Latest Release](https://github.com/aliyun/alibabacloud-php-sdk/)
|
||||
|
||||
## License
|
||||
|
||||
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
17
vendor/alibabacloud/ocr-20191230/autoload.php
vendored
Normal file
17
vendor/alibabacloud/ocr-20191230/autoload.php
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (file_exists(__DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php')) {
|
||||
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
}
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
$name = str_replace('AlibabaCloud\\SDK\\Ocr\\V20191230\\', '', $class);
|
||||
$file = __DIR__ . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . str_replace('\\', \DIRECTORY_SEPARATOR, $name) . '.php';
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
37
vendor/alibabacloud/ocr-20191230/composer.json
vendored
Normal file
37
vendor/alibabacloud/ocr-20191230/composer.json
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "alibabacloud/ocr-20191230",
|
||||
"description": "Alibaba Cloud OCR (20191230) SDK Library for PHP",
|
||||
"type": "library",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alibaba Cloud SDK",
|
||||
"email": "sdk-team@alibabacloud.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">5.5",
|
||||
"alibabacloud/tea-utils": "^0.2.19",
|
||||
"alibabacloud/tea-oss-sdk": "^0.3.0",
|
||||
"alibabacloud/openplatform-20191219": "^2.0.1",
|
||||
"alibabacloud/tea-oss-utils": "^0.3.1",
|
||||
"alibabacloud/tea-fileform": "^0.3.0",
|
||||
"alibabacloud/darabonba-openapi": "^0.2.8",
|
||||
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
|
||||
"alibabacloud/endpoint-util": "^0.1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"AlibabaCloud\\SDK\\Ocr\\V20191230\\": "src"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"fixer": "php-cs-fixer fix ./"
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true,
|
||||
"preferred-install": "dist",
|
||||
"optimize-autoloader": true
|
||||
},
|
||||
"prefer-stable": true
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example E75FE679-0303-4DD1-8252-1143B4FA8A27
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $jobId;
|
||||
protected $_name = [
|
||||
'jobId' => 'JobId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->jobId) {
|
||||
$res['JobId'] = $this->jobId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['JobId'])) {
|
||||
$model->jobId = $map['JobId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var GetAsyncJobResultResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = GetAsyncJobResultResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\GetAsyncJobResultResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class GetAsyncJobResultResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example A1F44EC4-118D-4A03-B213-F908F36F7DAA
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return GetAsyncJobResultResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
103
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php
vendored
Normal file
103
vendor/alibabacloud/ocr-20191230/src/Models/GetAsyncJobResultResponseBody/data.php
vendored
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\GetAsyncJobResultResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @example InvalidParameter
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $errorCode;
|
||||
|
||||
/**
|
||||
* @example paramsIllegal
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $errorMessage;
|
||||
|
||||
/**
|
||||
* @example 49E2CC28-ED1D-4CC5-854D-7D0AE2B20976
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $jobId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $result;
|
||||
|
||||
/**
|
||||
* @example PROCESS_SUCCESS
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $status;
|
||||
protected $_name = [
|
||||
'errorCode' => 'ErrorCode',
|
||||
'errorMessage' => 'ErrorMessage',
|
||||
'jobId' => 'JobId',
|
||||
'result' => 'Result',
|
||||
'status' => 'Status',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->errorCode) {
|
||||
$res['ErrorCode'] = $this->errorCode;
|
||||
}
|
||||
if (null !== $this->errorMessage) {
|
||||
$res['ErrorMessage'] = $this->errorMessage;
|
||||
}
|
||||
if (null !== $this->jobId) {
|
||||
$res['JobId'] = $this->jobId;
|
||||
}
|
||||
if (null !== $this->result) {
|
||||
$res['Result'] = $this->result;
|
||||
}
|
||||
if (null !== $this->status) {
|
||||
$res['Status'] = $this->status;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ErrorCode'])) {
|
||||
$model->errorCode = $map['ErrorCode'];
|
||||
}
|
||||
if (isset($map['ErrorMessage'])) {
|
||||
$model->errorMessage = $map['ErrorMessage'];
|
||||
}
|
||||
if (isset($map['JobId'])) {
|
||||
$model->jobId = $map['JobId'];
|
||||
}
|
||||
if (isset($map['Result'])) {
|
||||
$model->result = $map['Result'];
|
||||
}
|
||||
if (isset($map['Status'])) {
|
||||
$model->status = $map['Status'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php
vendored
Normal file
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBankCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBankCard/yhk3.jpg
|
||||
*
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURL'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURLObject = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBankCard/yhk3.jpg
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBankCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBankCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBankCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBankCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example D9C7521-0367-42EE-9646-FD066CCADB26
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBankCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
75
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php
vendored
Normal file
75
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBankCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBankCardResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $bankName;
|
||||
|
||||
/**
|
||||
* @example 6212262315007683105
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $cardNumber;
|
||||
|
||||
/**
|
||||
* @example 07/26
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $validDate;
|
||||
protected $_name = [
|
||||
'bankName' => 'BankName',
|
||||
'cardNumber' => 'CardNumber',
|
||||
'validDate' => 'ValidDate',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->bankName) {
|
||||
$res['BankName'] = $this->bankName;
|
||||
}
|
||||
if (null !== $this->cardNumber) {
|
||||
$res['CardNumber'] = $this->cardNumber;
|
||||
}
|
||||
if (null !== $this->validDate) {
|
||||
$res['ValidDate'] = $this->validDate;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BankName'])) {
|
||||
$model->bankName = $map['BankName'];
|
||||
}
|
||||
if (isset($map['CardNumber'])) {
|
||||
$model->cardNumber = $map['CardNumber'];
|
||||
}
|
||||
if (isset($map['ValidDate'])) {
|
||||
$model->validDate = $map['ValidDate'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php
vendored
Normal file
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBusinessCardAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBusinessCard/RecognizeBusinessCard1.jpg
|
||||
*
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURL'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURLObject = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBusinessCard/RecognizeBusinessCard1.jpg
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBusinessCardResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBusinessCardResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessCardResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessCardResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example 0068957A-C493-481F-BA14-C3F89BF75BD4
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessCardResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
145
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php
vendored
Normal file
145
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessCardResponseBody/data.php
vendored
Normal file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessCardResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $addresses;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $cellPhoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $companies;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $departments;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $emails;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $officePhoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $titles;
|
||||
protected $_name = [
|
||||
'addresses' => 'Addresses',
|
||||
'cellPhoneNumbers' => 'CellPhoneNumbers',
|
||||
'companies' => 'Companies',
|
||||
'departments' => 'Departments',
|
||||
'emails' => 'Emails',
|
||||
'name' => 'Name',
|
||||
'officePhoneNumbers' => 'OfficePhoneNumbers',
|
||||
'titles' => 'Titles',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->addresses) {
|
||||
$res['Addresses'] = $this->addresses;
|
||||
}
|
||||
if (null !== $this->cellPhoneNumbers) {
|
||||
$res['CellPhoneNumbers'] = $this->cellPhoneNumbers;
|
||||
}
|
||||
if (null !== $this->companies) {
|
||||
$res['Companies'] = $this->companies;
|
||||
}
|
||||
if (null !== $this->departments) {
|
||||
$res['Departments'] = $this->departments;
|
||||
}
|
||||
if (null !== $this->emails) {
|
||||
$res['Emails'] = $this->emails;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->officePhoneNumbers) {
|
||||
$res['OfficePhoneNumbers'] = $this->officePhoneNumbers;
|
||||
}
|
||||
if (null !== $this->titles) {
|
||||
$res['Titles'] = $this->titles;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Addresses'])) {
|
||||
if (!empty($map['Addresses'])) {
|
||||
$model->addresses = $map['Addresses'];
|
||||
}
|
||||
}
|
||||
if (isset($map['CellPhoneNumbers'])) {
|
||||
if (!empty($map['CellPhoneNumbers'])) {
|
||||
$model->cellPhoneNumbers = $map['CellPhoneNumbers'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Companies'])) {
|
||||
if (!empty($map['Companies'])) {
|
||||
$model->companies = $map['Companies'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Departments'])) {
|
||||
if (!empty($map['Departments'])) {
|
||||
$model->departments = $map['Departments'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Emails'])) {
|
||||
if (!empty($map['Emails'])) {
|
||||
$model->emails = $map['Emails'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['OfficePhoneNumbers'])) {
|
||||
if (!empty($map['OfficePhoneNumbers'])) {
|
||||
$model->officePhoneNumbers = $map['OfficePhoneNumbers'];
|
||||
}
|
||||
}
|
||||
if (isset($map['Titles'])) {
|
||||
if (!empty($map['Titles'])) {
|
||||
$model->titles = $map['Titles'];
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php
vendored
Normal file
50
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeBusinessLicenseAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBusinessLicense/RecognizeBusinessLicense1.jpg
|
||||
*
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURL'] = $this->imageURLObject;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURLObject = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php
vendored
Normal file
49
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseRequest.php
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBusinessLicense/RecognizeBusinessLicense1.jpg
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeBusinessLicenseResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeBusinessLicenseResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeBusinessLicenseResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example F34D031B-02BD-4A59-BA35-EE068DD6F6E6
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeBusinessLicenseResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
215
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php
vendored
Normal file
215
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data.php
vendored
Normal file
@ -0,0 +1,215 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\emblem;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\QRCode;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\stamp;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data\title;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* @example 0
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $business;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $capital;
|
||||
|
||||
/**
|
||||
* @var emblem
|
||||
*/
|
||||
public $emblem;
|
||||
|
||||
/**
|
||||
* @example 20150504
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $establishDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $legalPerson;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var QRCode
|
||||
*/
|
||||
public $QRCode;
|
||||
|
||||
/**
|
||||
* @example 91500108320423****
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $registerNumber;
|
||||
|
||||
/**
|
||||
* @var stamp
|
||||
*/
|
||||
public $stamp;
|
||||
|
||||
/**
|
||||
* @var title
|
||||
*/
|
||||
public $title;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* @example 29991231
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $validPeriod;
|
||||
protected $_name = [
|
||||
'address' => 'Address',
|
||||
'angle' => 'Angle',
|
||||
'business' => 'Business',
|
||||
'capital' => 'Capital',
|
||||
'emblem' => 'Emblem',
|
||||
'establishDate' => 'EstablishDate',
|
||||
'legalPerson' => 'LegalPerson',
|
||||
'name' => 'Name',
|
||||
'QRCode' => 'QRCode',
|
||||
'registerNumber' => 'RegisterNumber',
|
||||
'stamp' => 'Stamp',
|
||||
'title' => 'Title',
|
||||
'type' => 'Type',
|
||||
'validPeriod' => 'ValidPeriod',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->address) {
|
||||
$res['Address'] = $this->address;
|
||||
}
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->business) {
|
||||
$res['Business'] = $this->business;
|
||||
}
|
||||
if (null !== $this->capital) {
|
||||
$res['Capital'] = $this->capital;
|
||||
}
|
||||
if (null !== $this->emblem) {
|
||||
$res['Emblem'] = null !== $this->emblem ? $this->emblem->toMap() : null;
|
||||
}
|
||||
if (null !== $this->establishDate) {
|
||||
$res['EstablishDate'] = $this->establishDate;
|
||||
}
|
||||
if (null !== $this->legalPerson) {
|
||||
$res['LegalPerson'] = $this->legalPerson;
|
||||
}
|
||||
if (null !== $this->name) {
|
||||
$res['Name'] = $this->name;
|
||||
}
|
||||
if (null !== $this->QRCode) {
|
||||
$res['QRCode'] = null !== $this->QRCode ? $this->QRCode->toMap() : null;
|
||||
}
|
||||
if (null !== $this->registerNumber) {
|
||||
$res['RegisterNumber'] = $this->registerNumber;
|
||||
}
|
||||
if (null !== $this->stamp) {
|
||||
$res['Stamp'] = null !== $this->stamp ? $this->stamp->toMap() : null;
|
||||
}
|
||||
if (null !== $this->title) {
|
||||
$res['Title'] = null !== $this->title ? $this->title->toMap() : null;
|
||||
}
|
||||
if (null !== $this->type) {
|
||||
$res['Type'] = $this->type;
|
||||
}
|
||||
if (null !== $this->validPeriod) {
|
||||
$res['ValidPeriod'] = $this->validPeriod;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Address'])) {
|
||||
$model->address = $map['Address'];
|
||||
}
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['Business'])) {
|
||||
$model->business = $map['Business'];
|
||||
}
|
||||
if (isset($map['Capital'])) {
|
||||
$model->capital = $map['Capital'];
|
||||
}
|
||||
if (isset($map['Emblem'])) {
|
||||
$model->emblem = emblem::fromMap($map['Emblem']);
|
||||
}
|
||||
if (isset($map['EstablishDate'])) {
|
||||
$model->establishDate = $map['EstablishDate'];
|
||||
}
|
||||
if (isset($map['LegalPerson'])) {
|
||||
$model->legalPerson = $map['LegalPerson'];
|
||||
}
|
||||
if (isset($map['Name'])) {
|
||||
$model->name = $map['Name'];
|
||||
}
|
||||
if (isset($map['QRCode'])) {
|
||||
$model->QRCode = QRCode::fromMap($map['QRCode']);
|
||||
}
|
||||
if (isset($map['RegisterNumber'])) {
|
||||
$model->registerNumber = $map['RegisterNumber'];
|
||||
}
|
||||
if (isset($map['Stamp'])) {
|
||||
$model->stamp = stamp::fromMap($map['Stamp']);
|
||||
}
|
||||
if (isset($map['Title'])) {
|
||||
$model->title = title::fromMap($map['Title']);
|
||||
}
|
||||
if (isset($map['Type'])) {
|
||||
$model->type = $map['Type'];
|
||||
}
|
||||
if (isset($map['ValidPeriod'])) {
|
||||
$model->validPeriod = $map['ValidPeriod'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php
vendored
Normal file
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/QRCode.php
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class QRCode extends Model
|
||||
{
|
||||
/**
|
||||
* @example 132
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @example 156
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @example 914
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @example 126
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return QRCode
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php
vendored
Normal file
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/emblem.php
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class emblem extends Model
|
||||
{
|
||||
/**
|
||||
* @example 163
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @example 366
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @example 8
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @example 162
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return emblem
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php
vendored
Normal file
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/stamp.php
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class stamp extends Model
|
||||
{
|
||||
/**
|
||||
* @example 154
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @example 650
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @example 1030
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @example 154
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return stamp
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php
vendored
Normal file
91
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeBusinessLicenseResponseBody/data/title.php
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeBusinessLicenseResponseBody\data;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class title extends Model
|
||||
{
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return title
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
78
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php
vendored
Normal file
78
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeCharacterAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeCharacter/RecognizeCharacter5.jpg
|
||||
*
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $minHeight;
|
||||
|
||||
/**
|
||||
* @example true
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $outputProbability;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURL',
|
||||
'minHeight' => 'MinHeight',
|
||||
'outputProbability' => 'OutputProbability',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURL'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->minHeight) {
|
||||
$res['MinHeight'] = $this->minHeight;
|
||||
}
|
||||
if (null !== $this->outputProbability) {
|
||||
$res['OutputProbability'] = $this->outputProbability;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURLObject = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['MinHeight'])) {
|
||||
$model->minHeight = $map['MinHeight'];
|
||||
}
|
||||
if (isset($map['OutputProbability'])) {
|
||||
$model->outputProbability = $map['OutputProbability'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
77
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php
vendored
Normal file
77
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterRequest.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeCharacter/RecognizeCharacter5.jpg
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @example 10
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $minHeight;
|
||||
|
||||
/**
|
||||
* @example true
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $outputProbability;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'minHeight' => 'MinHeight',
|
||||
'outputProbability' => 'OutputProbability',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->minHeight) {
|
||||
$res['MinHeight'] = $this->minHeight;
|
||||
}
|
||||
if (null !== $this->outputProbability) {
|
||||
$res['OutputProbability'] = $this->outputProbability;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['MinHeight'])) {
|
||||
$model->minHeight = $map['MinHeight'];
|
||||
}
|
||||
if (isset($map['OutputProbability'])) {
|
||||
$model->outputProbability = $map['OutputProbability'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeCharacterResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeCharacterResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeCharacterResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example 7A9BC7FE-2D42-57AF-93BC-09A229DD2F1D
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeCharacterResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php
vendored
Normal file
60
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data.php
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var results[]
|
||||
*/
|
||||
public $results;
|
||||
protected $_name = [
|
||||
'results' => 'Results',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->results) {
|
||||
$res['Results'] = [];
|
||||
if (null !== $this->results && \is_array($this->results)) {
|
||||
$n = 0;
|
||||
foreach ($this->results as $item) {
|
||||
$res['Results'][$n++] = null !== $item ? $item->toMap() : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Results'])) {
|
||||
if (!empty($map['Results'])) {
|
||||
$model->results = [];
|
||||
$n = 0;
|
||||
foreach ($map['Results'] as $item) {
|
||||
$model->results[$n++] = null !== $item ? results::fromMap($item) : $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeCharacterResponseBody/data/results.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results\textRectangles;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class results extends Model
|
||||
{
|
||||
/**
|
||||
* @example 0.99
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
public $probability;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
|
||||
/**
|
||||
* @var textRectangles
|
||||
*/
|
||||
public $textRectangles;
|
||||
protected $_name = [
|
||||
'probability' => 'Probability',
|
||||
'text' => 'Text',
|
||||
'textRectangles' => 'TextRectangles',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->probability) {
|
||||
$res['Probability'] = $this->probability;
|
||||
}
|
||||
if (null !== $this->text) {
|
||||
$res['Text'] = $this->text;
|
||||
}
|
||||
if (null !== $this->textRectangles) {
|
||||
$res['TextRectangles'] = null !== $this->textRectangles ? $this->textRectangles->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return results
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Probability'])) {
|
||||
$model->probability = $map['Probability'];
|
||||
}
|
||||
if (isset($map['Text'])) {
|
||||
$model->text = $map['Text'];
|
||||
}
|
||||
if (isset($map['TextRectangles'])) {
|
||||
$model->textRectangles = textRectangles::fromMap($map['TextRectangles']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeCharacterResponseBody\data\results;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class textRectangles extends Model
|
||||
{
|
||||
/**
|
||||
* @example -65
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $angle;
|
||||
|
||||
/**
|
||||
* @example 409
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $height;
|
||||
|
||||
/**
|
||||
* @example 511
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $left;
|
||||
|
||||
/**
|
||||
* @example 150
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $top;
|
||||
|
||||
/**
|
||||
* @example 77
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $width;
|
||||
protected $_name = [
|
||||
'angle' => 'Angle',
|
||||
'height' => 'Height',
|
||||
'left' => 'Left',
|
||||
'top' => 'Top',
|
||||
'width' => 'Width',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->angle) {
|
||||
$res['Angle'] = $this->angle;
|
||||
}
|
||||
if (null !== $this->height) {
|
||||
$res['Height'] = $this->height;
|
||||
}
|
||||
if (null !== $this->left) {
|
||||
$res['Left'] = $this->left;
|
||||
}
|
||||
if (null !== $this->top) {
|
||||
$res['Top'] = $this->top;
|
||||
}
|
||||
if (null !== $this->width) {
|
||||
$res['Width'] = $this->width;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return textRectangles
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Angle'])) {
|
||||
$model->angle = $map['Angle'];
|
||||
}
|
||||
if (isset($map['Height'])) {
|
||||
$model->height = $map['Height'];
|
||||
}
|
||||
if (isset($map['Left'])) {
|
||||
$model->left = $map['Left'];
|
||||
}
|
||||
if (isset($map['Top'])) {
|
||||
$model->top = $map['Top'];
|
||||
}
|
||||
if (isset($map['Width'])) {
|
||||
$model->width = $map['Width'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
64
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php
vendored
Normal file
64
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseAdvanceRequest.php
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
|
||||
class RecognizeDriverLicenseAdvanceRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeDriverLicense/jsz2.jpg
|
||||
*
|
||||
* @var Stream
|
||||
*/
|
||||
public $imageURLObject;
|
||||
|
||||
/**
|
||||
* @example face
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURLObject' => 'ImageURL',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURLObject) {
|
||||
$res['ImageURL'] = $this->imageURLObject;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseAdvanceRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURLObject = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
63
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php
vendored
Normal file
63
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseRequest.php
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @example http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeDriverLicense/jsz2.jpg
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageURL;
|
||||
|
||||
/**
|
||||
* @example face
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $side;
|
||||
protected $_name = [
|
||||
'imageURL' => 'ImageURL',
|
||||
'side' => 'Side',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->imageURL) {
|
||||
$res['ImageURL'] = $this->imageURL;
|
||||
}
|
||||
if (null !== $this->side) {
|
||||
$res['Side'] = $this->side;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseRequest
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['ImageURL'])) {
|
||||
$model->imageURL = $map['ImageURL'];
|
||||
}
|
||||
if (isset($map['Side'])) {
|
||||
$model->side = $map['Side'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php
vendored
Normal file
74
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponse.php
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
/**
|
||||
* @var RecognizeDriverLicenseResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'statusCode' => 'statusCode',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('statusCode', $this->statusCode, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->statusCode) {
|
||||
$res['statusCode'] = $this->statusCode;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['statusCode'])) {
|
||||
$model->statusCode = $map['statusCode'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = RecognizeDriverLicenseResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php
vendored
Normal file
62
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody.php
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class RecognizeDriverLicenseResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @example 374D8C7E-9ECC-4750-A87F-50571702F175
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
protected $_name = [
|
||||
'data' => 'Data',
|
||||
'requestId' => 'RequestId',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return RecognizeDriverLicenseResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php
vendored
Normal file
61
vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDriverLicenseResponseBody/data.php
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody;
|
||||
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data\backResult;
|
||||
use AlibabaCloud\SDK\Ocr\V20191230\Models\RecognizeDriverLicenseResponseBody\data\faceResult;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var backResult
|
||||
*/
|
||||
public $backResult;
|
||||
|
||||
/**
|
||||
* @var faceResult
|
||||
*/
|
||||
public $faceResult;
|
||||
protected $_name = [
|
||||
'backResult' => 'BackResult',
|
||||
'faceResult' => 'FaceResult',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->backResult) {
|
||||
$res['BackResult'] = null !== $this->backResult ? $this->backResult->toMap() : null;
|
||||
}
|
||||
if (null !== $this->faceResult) {
|
||||
$res['FaceResult'] = null !== $this->faceResult ? $this->faceResult->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['BackResult'])) {
|
||||
$model->backResult = backResult::fromMap($map['BackResult']);
|
||||
}
|
||||
if (isset($map['FaceResult'])) {
|
||||
$model->faceResult = faceResult::fromMap($map['FaceResult']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user