forked from qmpaas/leadshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复:体验版购物车商品结算后,返回购物车,购物车未刷新问题 修复:公众号商城填写评价页面空白问题 修复:添加商品-无法上传视频问题 修复:公众号商城设置跳转微页面,微页面不显示内容问题 修复:售后订单首次拒绝后不能发货问题 修复:山东省济南市缺失行政区问题
- Loading branch information
wj005
committed
Aug 2, 2021
1 parent
aa6cd5a
commit 1d946da
Showing
103 changed files
with
7,724 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
<?php | ||
|
||
namespace leadmall\api; | ||
|
||
use basics\api\BasicsController as BasicsModules; | ||
use leadmall\Map; | ||
use Yii; | ||
|
||
class CloudController extends BasicsModules implements Map | ||
{ | ||
public $modelClass = 'setting\models\Setting'; | ||
|
||
/** | ||
* 重写父类 | ||
* @return [type] [description] | ||
*/ | ||
public function actions() | ||
{ | ||
$actions = parent::actions(); | ||
unset($actions['create']); | ||
unset($actions['update']); | ||
return $actions; | ||
} | ||
|
||
public function actionIndex() | ||
{ | ||
$headers = \Yii::$app->getRequest()->getHeaders(); | ||
//获取分页信息 | ||
$pageSize = $headers->get('X-Pagination-Per-Page') ?? 5; | ||
$page = \Yii::$app->request->get('page', 1); | ||
return \Yii::$app->cloud->update->getVersionData([ | ||
'page' => $page, | ||
'limit' => $pageSize, | ||
]); | ||
} | ||
|
||
public function actionCreate($value = '') | ||
{ | ||
$res = $this->modelClass::find()->where(['keyword' => 'mysql_version'])->one(); | ||
if (!$res) { | ||
$article = new $this->modelClass(); | ||
$article->keyword = 'mysql_version'; | ||
$article->merchant_id = 1; | ||
$article->content = app_version(); | ||
$article->save(); | ||
} | ||
if (file_exists(Yii::$app->basePath . "/install.lock")) { | ||
return @file_get_contents(Yii::$app->basePath . "/install.lock"); | ||
} else { | ||
Error("锁文件不存在"); | ||
} | ||
} | ||
} | ||
<?php | ||
|
||
namespace leadmall\api; | ||
|
||
use basics\api\BasicsController as BasicsModules; | ||
use leadmall\Map; | ||
use Yii; | ||
|
||
class CloudController extends BasicsModules implements Map | ||
{ | ||
public $modelClass = 'setting\models\Setting'; | ||
|
||
/** | ||
* 重写父类 | ||
* @return [type] [description] | ||
*/ | ||
public function actions() | ||
{ | ||
$actions = parent::actions(); | ||
unset($actions['create']); | ||
unset($actions['update']); | ||
return $actions; | ||
} | ||
|
||
public function actionIndex() | ||
{ | ||
$headers = \Yii::$app->getRequest()->getHeaders(); | ||
//获取分页信息 | ||
$pageSize = $headers->get('X-Pagination-Per-Page') ?? 5; | ||
$page = \Yii::$app->request->get('page', 1); | ||
return [ | ||
'version' => \Yii::$app->cloud->update->getVersionData([ | ||
'page' => $page, | ||
'limit' => $pageSize, | ||
]), | ||
'auth' => \Yii::$app->cloud->auth->getAuthData(), | ||
]; | ||
} | ||
|
||
public function actionCreate($value = '') | ||
{ | ||
$res = $this->modelClass::find()->where(['keyword' => 'mysql_version'])->one(); | ||
if (!$res) { | ||
$article = new $this->modelClass(); | ||
$article->keyword = 'mysql_version'; | ||
$article->merchant_id = 1; | ||
$article->content = app_version(); | ||
$article->save(); | ||
} | ||
if (file_exists(Yii::$app->basePath . "/install.lock")) { | ||
return @file_get_contents(Yii::$app->basePath . "/install.lock"); | ||
} else { | ||
Error("锁文件不存在"); | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
<?php | ||
/** | ||
* @copyright ©2020 浙江禾成云计算有限公司 | ||
* Created by PhpStorm. | ||
* User: Andy - 阿德 [email protected] | ||
* Date: 2021/1/18 | ||
* Time: 11:21 | ||
*/ | ||
|
||
namespace app\components\cloud; | ||
|
||
use yii\base\Component; | ||
|
||
/** | ||
* 云服务组件 | ||
* Class Cloud | ||
* @package app\components\cloud | ||
*/ | ||
class Cloud extends Component | ||
{ | ||
/** @var CloudUpdate $update */ | ||
public $update; | ||
|
||
public function init() | ||
{ | ||
parent::init(); | ||
$this->update = new CloudUpdate(); | ||
} | ||
} | ||
<?php | ||
/** | ||
* @copyright ©2020 浙江禾成云计算有限公司 | ||
* Created by PhpStorm. | ||
* User: Andy - 阿德 [email protected] | ||
* Date: 2021/1/18 | ||
* Time: 11:21 | ||
*/ | ||
|
||
namespace app\components\cloud; | ||
|
||
use yii\base\Component; | ||
|
||
/** | ||
* 云服务组件 | ||
* Class Cloud | ||
* @package app\components\cloud | ||
*/ | ||
class Cloud extends Component | ||
{ | ||
/** @var CloudUpdate $update */ | ||
public $update; | ||
/** @var CloudAuth $auth */ | ||
public $auth; | ||
|
||
public function init() | ||
{ | ||
parent::init(); | ||
$this->update = new CloudUpdate(); | ||
$this->auth = new CloudAuth(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: Andy - 阿德 [email protected] | ||
* Date: 2021/7/30 | ||
* Time: 10:42 | ||
*/ | ||
|
||
namespace app\components\cloud; | ||
|
||
|
||
class CloudAuth extends BaseCloud | ||
{ | ||
public function getAuthData($params = []) | ||
{ | ||
return $this->httpGet('mall/auth/index', $params); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
CREATE TABLE `heshop_initialize_prefix_waybill` ( | ||
`id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'ID', | ||
`code` varchar(10) NOT NULL COMMENT '物流公司编号', | ||
`name` varchar(256) NOT NULL COMMENT '名称', | ||
`mobile` varchar(32) NOT NULL COMMENT '联系方式', | ||
`province` varchar(50) NOT NULL COMMENT '省', | ||
`city` varchar(50) NOT NULL COMMENT '市', | ||
`district` varchar(50) NOT NULL COMMENT '区县', | ||
`address` varchar(255) NOT NULL COMMENT '详细地址', | ||
`AppID` varchar(50) NOT NULL COMMENT '应用ID', | ||
`merchant_id` bigint(10) NOT NULL COMMENT '商户ID', | ||
`created_time` int(10) DEFAULT '0' COMMENT '创建时间', | ||
`updated_time` int(10) DEFAULT '0' COMMENT '更新时间', | ||
`deleted_time` int(10) DEFAULT '0' COMMENT '删除时间', | ||
`is_deleted` tinyint(100) DEFAULT '0' COMMENT '是否删除', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4; | ||
|
||
ALTER TABLE `heshop_initialize_prefix_order_after` | ||
ADD COLUMN `return_freight` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '退款运费' ; | ||
ALTER TABLE `heshop_initialize_prefix_goods` | ||
MODIFY COLUMN `video` varchar(8192) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '视频地址' AFTER `is_video`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.