This commit is contained in:
尖叫 2023-10-25 19:08:55 +08:00
parent 169b3a0129
commit 6797b77eea
101 changed files with 10610 additions and 10563 deletions

View File

@ -16,6 +16,9 @@ use Yii;
* @property string|null $pdf_path pdf路径
* @property int $step 流程0-用户初始化 1-上传初始模型 2-医师上传模型
* @property int $created_at 添加时间
* @property int $initial_at 门店添加时间
* @property int $final_at 医师添加时间
* @property int $pdf_at PDF添加时间
*/
class Report extends \yii\db\ActiveRecord
{
@ -34,7 +37,7 @@ class Report extends \yii\db\ActiveRecord
{
return [
[['user_id', 'store_id', 'model_number', 'created_at'], 'required'],
[['user_id', 'store_id', 'step', 'created_at'], 'integer'],
[['user_id', 'store_id', 'step', 'created_at', 'pdf_at', 'initial_at', 'final_at'], 'integer'],
[['initial_path', 'final_path', 'pdf_path'], 'string'],
[['model_number'], 'string', 'max' => 50],
];

View File

@ -86,7 +86,7 @@ class User extends \yii\db\ActiveRecord implements IdentityInterface
{
return [
[['username', 'password', 'auth_key', 'access_token', 'nickname', 'email', 'real_name', 'avatar_url', 'mobile_phone', 'mobile_prefix'], 'trim'],
[['cx_mch_id', 'gender', 'status', 'parent_id', 'is_modify_un', 'is_delete', 'country_id', 'city_id', 'created_at', 'updated_at', 'type', 'is_view'], 'integer'],
[['cx_mch_id', 'gender', 'status', 'parent_id', 'is_modify_un', 'is_delete', 'country_id', 'city_id', 'created_at', 'updated_at', 'type'], 'integer'],
[['username', 'password', 'auth_key', 'access_token', 'nickname', 'avatar_url'], 'required'],
[['birthday'], 'safe'],
[['username', 'desc'], 'string', 'max' => 64],
@ -128,7 +128,7 @@ class User extends \yii\db\ActiveRecord implements IdentityInterface
'created_at' => '添加时间',
'updated_at' => '更新时间',
'type' => '0=普通用户1=管理员',
'is_view' => '是否有观看视频',
'is_view' => '鞋码',
];
}
@ -434,17 +434,17 @@ class User extends \yii\db\ActiveRecord implements IdentityInterface
// $data['data']['user_store_id'] = $user->store_id ? $user->store_id : 0;
$data['data']['user_store_id'] = $user->store_id ? $user->store_id : 1;
$data['data']['user_type'] = $user->type;
if(!in_array($user->type,[2,7,8])){
if (!in_array($user->type, [2, 7, 8])) {
$data['data']['user_type'] = 0;
}
//门店人员身份 1-门店管理员 2-门店服务员 3-门店财务人员
if ($user->type == 2) {
$storeData = ApiHelper::findOneUserStoreId($user->id);
if(empty($storeData)){
if (empty($storeData)) {
$data['data']['store_type'] = 0;
$data['data']['store_id'] = 0;
$data['data']['user_type'] = 0;
}else{
} else {
$data['data']['store_type'] = $storeData['user_type'];
$data['data']['store_id'] = $storeData['store_id'];
}

View File

@ -0,0 +1,70 @@
<?php
/**
* @author Any
* @description KISS
* @date 2021年6月30日
* @version 1.0.0
*
* _____LOG_____
*
*/
namespace app\modules\api\controllers;
use app\modules\api\behaviors\LoginBehavior;
use app\components\SiteHelper;
use app\components\SysConst;
use app\models\common\cms\CommonNoticeActionForm;
use app\models\common\cms\CommonNoticeListForm;
use app\models\cms\Notice;
use app\components\SysErrCode;
use app\modules\api\models\ReportForm;
use yii\web\NotFoundHttpException;
class ReportController extends Controller
{
public function behaviors()
{
return array_merge(parent::behaviors(), [
'login' => [
'class' => LoginBehavior::className(),
'ignore' => [
]
]
]);
}
/**
* showdoc
* @catalog 用户绑定
* @title 公告列表
* @description 本接口提供公告列表
* @method get
* @url /api/report/index
* @param keywords 非必选 string 关键词
* @param page 必选 int 页码
* @param limit 非必选 int 每页记录数
* @param is_top 非必选 int 是否置顶1=0=
* @param is_index 非必选 int 首页展示1=0=
* @return {"code":0,"msg":"ok","data":[{"author":"","title":"公告公告公告公告1","summary":"","content":"<p>公告公告公告公告公告公告公告公告公告公告公告公告公告额</p>","cover_url":"","id":"1","rich_text_id":"1","sort":"103","is_top":"0","is_index":"1","status":"1","created_at":"1625216065","published_at":"1625216065","viewed_num":"0","created_at_cn":"2021-07-02 16:54:25","published_at_cn":"2021-07-02 16:54:25","status_cn":"已发布"}],"count":"1","page_size":20,"page_count":1,"page_no":1,"end_flag":false}
* @return_param count int 记录条数
* @return_param page_size int 每页记录数
* @return_param page_count int 总页数
* @return_param page_no int 当前页码
* @return_param end_flag bool 是否加载结束
* @remark
*/
public function actionIndex()
{
$form = new ReportForm();
$form->attributes = \Yii::$app->request->get();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->search();
return $this->responseHandler($data);
}
}

View File

@ -32,124 +32,11 @@ class UserController extends Controller
'login' => [
'class' => LoginBehavior::className(),
'ignore' => [
'api/user/add-qrcode-find'
]
]
]);
}
/**
* showdoc
* @catalog 用户信息
* @title 基础信息
* @description 获取个人基础信息
* @method get
* @url /api/user/index
* @return {"code":0,"msg":"ok","data":{"user_id":"1","nickname":"admin","avatar_url":"http://app.tpl.dev.1nww.com/statics/images/avatar.jpg","gender":0,"gender_cn":"未知","is_modify_un":false,"type_cn":"管理员","is_admin":true}}
* @return_param is_modify_un boolean 是否可以修改用户名
* @return_param is_admin boolean 是否为管理员
* @return_param is_view int 是否已观看视频,0未观看1已观看
* @return_param is_logout int 是否可提交注销,0可以提交1可以撤销
* @remark
*/
public function actionIndex()
{
$form = new UserBasicInfoForm();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->isGuest ? 0 : \Yii::$app->user->identity->id;
$data = $form->search();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 修改头像
* @description 修改用户头像
* @method post
* @url /api/user/modify-avatar
* @param avatar_url 必选 string 头像地址,文件上传接口返回地址
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionModifyAvatar()
{
$form = new UserBasicInfoForm();
// $form->scenario = 'avatar';
$form->attributes = \Yii::$app->request->post();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->modify_avatar();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 修改昵称
* @description 修改用户昵称
* @method post
* @url /api/user/modify-nickname
* @param nickname 必选 string 昵称
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionModifyNickname()
{
$form = new UserBasicInfoForm();
// $form->scenario = 'nickname';
$form->attributes = \Yii::$app->request->post();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->modify_nickname();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 修改性别
* @description 修改用户性别
* @method post
* @url /api/user/modify-gender
* @param gender 必选 int 性别0=未知1=2=3=保密
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionModifyGender()
{
$form = new UserBasicInfoForm();
$form->scenario = 'gender';
$form->attributes = \Yii::$app->request->post();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->modify_gender();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 修改所在城市
* @description 修改用户所在城市
* @method post
* @url /api/user/modify-city
* @param city_id 必选 int 城市ID
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionModifyCity()
{
$form = new UserBasicInfoForm();
$form->scenario = 'city';
$form->attributes = \Yii::$app->request->post();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->modify_city();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 会员注册
@ -162,328 +49,10 @@ class UserController extends Controller
{
$post = \Yii::$app->request->post(); // attributes 转成键值对形式 key=> value
$form = new UserModifyForm();
$form->setScenario('modify_user');
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->price = $post['price'];
unset($post['price']);
$form->attributes = $post;
$form->user_id = \Yii::$app->user->identity->id; //获取用户登陆ID
$data = $form->modify_user();
return $this->responseHandler($data);
}
/**
* 会员注册填充
* @return array
*/
public function actionModifyUserBuy()
{
$form = new UserModifyForm();
$form->setScenario('modify_user_buy');
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->attributes = \Yii::$app->request->post(); // attributes 转成键值对形式 key=> value
$form->user_id = \Yii::$app->user->identity->id; //获取用户登陆ID
$data = $form->modify_user_buy();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 会员注册判断
* @method post
* @url /api/user/user-list
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionUserFind()
{
$form = new UserModifyForm();
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->verifyUserInfo();
return $this->responseHandler($data);
}
/**
*会员信息填充
*/
public function actionUserPersonal()
{
$form = new UserModifyForm();
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->user_id = \Yii::$app->user->identity->id;
$request = \Yii::$app->request;
if ($request->isPost) {
$form->setScenario('user_personal');
$form->attributes = $request->post(); // attributes 转成键值对形式 key=> value;
}
$data = $form->userPersonal($request);
return $this->responseHandler($data);
}
/**
* 用户评价
* @return array
*/
public function actionEvaluate()
{
$form = new CommentForm();
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->user_id = \Yii::$app->user->identity->id;
$form->attributes = \Yii::$app->request->post(); // attributes 转成键值对形式 key=> value
$data = $form->evaluation();
return $this->responseHandler($data);
}
/**
* 评价查看
*/
public function actionEvaluateShow()
{
$form = new CommentForm();
$form->cx_mch_id = $this->cx_mch_id; //商户ID 没看到传参赋值 默认给0
$form->user_id = \Yii::$app->user->identity->id;
$form->attributes = \Yii::$app->request->get(); // attributes 转成键值对形式 key=> value
$data = $form->evaluationList();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 获取用户id的事件
* @description 修改用户所在城市
* @method get
* @param user_id int 用户id
* @url /api/user/get-user-id-event
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionGetUserIdEvent()
{
$id = \Yii::$app->request->get('user_id');
if (empty($id)) {
return $this->responseHandler(['code' => 1, 'msg' => 'ok', 'data' => []]);
}
$key = "api:user_event_data:{$id}";
$get = \Yii::$app->redis->hkeys($key);
if (empty($get)) {
\Yii::$app->redis->hset($key, "temp_field", 1);
return $this->responseHandler(['code' => 1, 'msg' => 'ok', 'data' => []]);
}
$event_id = '';
foreach ($get as $k => $v) {
if ($v == 'temp_field') {
continue;
}
$event_id = $v;
break;
}
if (empty($event_id)) {
return $this->responseHandler(['code' => 1, 'msg' => 'ok', 'data' => []]);
}
return $this->responseHandler(['code' => 0, 'msg' => 'ok', 'data' => ['event_id' => $event_id]]);
}
/**
* showdoc
* @catalog 用户信息
* @title 停止用户id的事件
* @description 修改用户所在城市
* @method get
* @param user_id int 用户id
* @param event_id string 事件id
* @url /api/user/end-user-id-event
* @return {"code":0,"msg":"ok","data":{}}
* @remark
*/
public function actionEndUserIdEvent()
{
$id = \Yii::$app->request->get('user_id');
$event_id = \Yii::$app->request->get('event_id');
if (empty($id) || empty($event_id)) {
return $this->responseHandler(['code' => 1, 'msg' => 'ok', 'data' => []]);
}
$key = "api:user_event_data:{$id}";
\Yii::$app->redis->hdel($key, $event_id);
return $this->responseHandler(['code' => 0, 'msg' => 'ok', 'data' => []]);
}
/**
* showdoc
* @catalog 呼叫服务员
* @title 呼叫服务员
* @description 呼叫服务员
* @method post
* @url /api/user/service-person
* @return {"code":0,"msg":"ok","data":{}}
* @return_param data array 手机号,一维索引数组
* @remark
*/
public function actionServicePerson()
{
if (!\Yii::$app->request->isPost) {
$data = $this->invaildRequest();
return $this->responseHandler($data);
}
$user_id = \Yii::$app->user->identity->id;
$order = Order::find()->where(['is_delete' => 0, 'status' => [1,2], 'user_id' => $user_id])->orderBy(['id' => SORT_DESC])->one();
if (empty($order) || empty($order->store_id)) {
return $this->responseHandler(['code' => 1, 'msg' => '没有正在进行中的订单,无法呼叫']);
}
$store_id = $order->store_id;
$phone = [];
$user_ids = StoreUser::find()->where(['is_delete' => 0, 'store_id' => $store_id, 'user_type' => 2, 'status' => 0])->select('user_id')->column();
if (!empty($user_ids)) {
$mobile_phone = User::find()->where(['id' => $user_ids])->select('mobile_phone')->column();
if (!empty($mobile_phone)) {
foreach ($mobile_phone as &$item) {
$item = EncryptHelper::decryptMobilePhone($item);
}
$phone = $mobile_phone;
}
}
if (empty($phone)) {
return $this->responseHandler(['code' => 1, 'msg' => '订单所在门店未绑定服务人员,无法呼叫']);
}
return $this->responseHandler(['code' => 0, 'msg' => 'ok', 'data' => $phone]);
}
/**
* showdoc
* @catalog 二维码访问
* @title 二维码访问
* @description 二维码访问
* @method post
* @url /api/user/add-qrcode-find
* @param store_id int 门店id
* @param ball_id string 球车编号
* @return
* @return_param
* @remark
*/
public function actionAddQrcodeFind()
{
if (!\Yii::$app->request->isPost) {
$data = $this->invaildRequest();
return $this->responseHandler($data);
}
$user_id = 0;
if(!empty(\Yii::$app->user->identity)){
$user_id = \Yii::$app->user->identity->id ? \Yii::$app->user->identity->id :0;
}
$store_id = \Yii::$app->request->post('store_id');
$ball_id = \Yii::$app->request->post('ball_id');
if(!empty($ball_id)){
$unionid = $ball_id;
$type = 2;
}else{
$unionid = $store_id;
$type = 1;
}
$value = ['user_id' => $user_id,'store_id'=>$store_id,'ball_id'=>$ball_id];
$value = json_encode($value);
$obj = new QrcodeRecord();
$obj->unionid = $unionid;
$obj->data = $value;
$obj->type = $type;
$obj->created_at = time();
$obj->is_delete = 0;
$obj->deleted_at = 0;
$obj->save();
/*$time = time();
$date = date('Y-m-d');
$h = date('H');
if(!empty($store_id)){
$key = 'api:cxaibc:qrcode:store_id:'.$store_id.":date_{$date}:h_{$h}";
}
if(!empty($ball_id)){
$key = 'api:cxaibc:qrcode:ball_id:'.$ball_id.":date_{$date}:h_{$h}";
}
\Yii::$app->redis->rpush($key,$value);
$redis_name = "api:cxaibc:qrcode:date:list";
\Yii::$app->redis->lpush($redis_name,$date);*/
return $this->responseHandler([
'code'=>0,
'msg'=>'ok',
'data'=>''
]);
}
/**
* showdoc
* @catalog 用户信息
* @title 用户首次下单时看完视频调用
* @description 用户首次下单时看完视频调用
* @method post
* @url /api/user/find-video
* @return
* @return_param
* @remark 注:可根据/api/user/index【用户/基础信息】接口获取到用户观看状态
*/
public function actionFindVideo()
{
$form = new UserBasicInfoForm();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->find_video();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 注销申请
* @description 注销申请
* @method post
* @url /api/user/account-logout
* @return
* @return_param
* @remark
*/
public function actionAccountLogout()
{
if (!\Yii::$app->request->isPost) {
$data = $this->invaildRequest();
return $this->responseHandler($data);
}
$form = new UserBasicInfoForm();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->account_logout();
return $this->responseHandler($data);
}
/**
* showdoc
* @catalog 用户信息
* @title 撤销注销申请
* @description 撤销注销申请
* @method post
* @url /api/user/account-logout-revocation
* @return
* @return_param
* @remark
*/
public function actionAccountLogoutRevocation()
{
if (!\Yii::$app->request->isPost) {
$data = $this->invaildRequest();
return $this->responseHandler($data);
}
$form = new UserBasicInfoForm();
$form->cx_mch_id = $this->cx_mch_id;
$form->user_id = \Yii::$app->user->identity->id;
$data = $form->account_logout_revocation();
return $this->responseHandler($data);
}
}

View File

@ -0,0 +1,102 @@
<?php
/**
* @author Any
* @description KISS
* @date 2020-12-2
* @version 1.0.0
*
* _____LOG_____
*
*/
namespace app\modules\api\models;
use function AlibabaCloud\Client\value;
use app\components\FlashStorage;
use app\components\SiteHelper;
use app\models\BallMark;
use app\models\Coach;
use app\models\DeviceUniqueBindUser;
use app\models\Report;
use app\models\Store;
use app\models\User;
use app\components\auth\AToken;
use app\components\EncryptHelper;
use app\modules\api\components\ApiHelper;
use app\modules\api\components\GetDistance;
use yii\data\Pagination;
class ReportForm extends ApiModel
{
public $page;
public $limit;
public $keywords;
public $status;
public $user_id;
public $cx_mch_id;
public function rules()
{
return [
[['keywords',], 'trim'],
[['keywords',], 'string'],
[['page', 'limit', 'status'], 'integer'],
[['page'], 'default', 'value' => 1],
[['limit'], 'default', 'value' => 20],
];
}
/**
* 型号列表
*/
public function search()
{
if (!$this->validate()) {
return $this->getModelError();
}
//未完成
if ($this->status == 1) {
$status = [0, 1, 2];
}
//完成
if ($this->status == 2) {
$status = [3];
}
$query = Report::find()
->select('id,model_number,pdf_path,pdf_at,step')
->where([
'user_id' => $this->user_id
])->andFilterWhere([
'in', 'step', $status
]);
$count = $query->count();
$pagination = new Pagination(['totalCount' => $count, 'pageSize' => $this->limit]);
$list = $query->offset($pagination->offset)->limit($pagination->limit)->orderBy(['id' => SORT_DESC])->asArray()->all();
foreach ($list as $key => $value) {
$value['pdf_at_cn'] = '';
if (!empty($value['pdf_at'])) {
$value['pdf_at_cn'] = date('Y-m-d H:i:s', $value['pdf_at']);
}
$list[$key] = $value;
}
$data = [];
$data['code'] = 0;
$data['msg'] = 'ok';
$data['data'] = $list;
$data['count'] = $count;
return $data;
}
}

View File

@ -29,83 +29,32 @@ class UserModifyForm extends ApiModel
public $cx_mch_id;
public $user_id;
public $price;
public $plugin_sign = 'member';
public $member_status = 1;
public $real_name;
public $mobile_phone;
public $age;
public $store_id;
public $territory;
public $height;
public $weight;
public $college;
public $ball_age;
public $address;
public $arm_length;
public $glove;
public $palm_size;
public $shoes_size;
public $gender;
public $is_view;
public function rules()
{
return [
[['real_name'], 'required', 'on' => 'modify_user'],
// [['height'], 'required', 'on' => 'modify_user'],
// [['weight'], 'required', 'on' => 'modify_user'],
// [['age'], 'required', 'on' => 'modify_user'],
[['store_id'], 'required', 'on' => 'modify_user'],
// [['territory'], 'required', 'on' => 'modify_user'],
[['territory'], 'string', 'max' => 100, 'on' => 'modify_user'],
[['college'], 'required', 'on' => 'modify_user_buy'],
[['ball_age'], 'required', 'on' => 'modify_user_buy'],
[['address'], 'required', 'on' => 'modify_user_buy'],
[['arm_length'], 'required', 'on' => 'modify_user_buy'],
[['glove'], 'required', 'on' => 'modify_user_buy'],
[['palm_size'], 'required', 'on' => 'modify_user_buy'],
[['shoes_size'], 'required', 'on' => 'modify_user_buy'],
[['mobile_phone'], 'filter', 'filter' => 'trim', 'on' => 'user_personal'],
[['mobile_phone'], 'match', 'pattern' => '/^[1][34578][0-9]{9}$/', 'on' => 'user_personal'],
[['height'], 'required', 'on' => 'user_personal'],
[['weight'], 'required', 'on' => 'user_personal'],
[['age'], 'required', 'on' => 'user_personal'],
[['store_id'], 'required', 'on' => 'user_personal'],
[['territory'], 'required', 'on' => 'user_personal'],
[['territory'], 'string', 'max' => 100, 'on' => 'user_personal'],
[['college'], 'required', 'on' => 'user_personal'],
[['ball_age'], 'required', 'on' => 'user_personal'],
[['address'], 'required', 'on' => 'user_personal'],
[['arm_length'], 'required', 'on' => 'user_personal'],
[['glove'], 'required', 'on' => 'user_personal'],
[['palm_size'], 'required', 'on' => 'user_personal'],
[['shoes_size'], 'required', 'on' => 'user_personal'],
[['real_name'], 'required'],
[['gender'], 'required'],
[['is_view'], 'required'],
[['mobile_phone'], 'required'],
[['mobile_phone'], 'filter', 'filter' => 'trim'],
[['mobile_phone'], 'match', 'pattern' => '/^[1][34578][0-9]{9}$/'],
];
}
public function scenarios()
public function attributeLabels()
{
return [
'modify_user' => ['real_name', 'mobile_phone', 'height', 'weight', 'age', 'store_id', 'territory', 'price', 'member_status'],
'modify_user_buy' => ['college', 'ball_age', 'address', 'arm_length', 'glove', 'palm_size', 'shoes_size'],
'user_personal' => ['real_name', 'mobile_phone', 'height', 'weight', 'age', 'store_id', 'territory'
, 'college', 'ball_age', 'address', 'arm_length', 'glove', 'palm_size', 'shoes_size'],
'mobile_phone' => '手机号',
'real_name' => '姓名',
'gender' => '性别',
'is_view' => '鞋码',
];
}
@ -114,281 +63,39 @@ class UserModifyForm extends ApiModel
*/
public function modify_user()
{
$userInformationModel = new UserInformation();
$userInformationData = UserInformation::findOne(['user_id' => $this->user_id, 'member_status' => 1]);
//有会员信息 该会员已注册
if ($userInformationData) {
return $this->apiReturnSuccess('会员已注册', $userInformationData);
}
if (!$this->validate()) {
return $this->getModelError();
}
//查user表用户信息 user
$user = $this->verifyUserData();
$user = User::findOne(['id' => $this->user_id]);
if (!empty($user->mobile_phone) && !empty($user->is_view)) {
return [
'code' => 0,
'msg' => '已填写',
];
}
$t = \Yii::$app->db->beginTransaction();
try {
$user->real_name = $this->real_name;
$user->mobile_phone = $this->mobile_phone;
$user->gender = $this->gender;
$user->is_view = $this->is_view;
//user表添加真实姓名跟手机号
if ($this->real_name) {
$user->real_name = $this->real_name;
}
if (!$user->save()) {
$t->rollBack();
return $this->getModelError($user);
}
// 年龄 体重 身高 门店 所属地 学院 球龄 地址 臂长 手掌大小 手套尺寸 鞋码
$data['user_id'] = $this->user_id;
//user_information表添加其他信息
//体重
if ($this->weight) {
$data['weight'] = $this->weight;
}
//身高
if ($this->height) {
$data['height'] = $this->height;
}
//年龄
if ($this->age) {
$data['age'] = $this->age;
}
//门店
if ($this->store_id) {
$data['store_id'] = $this->store_id;
}
//所属地
if ($this->territory) {
$data['territory'] = $this->territory;
}
// todo 测试使用,未接通支付,直接变更为已支付,并且日期添加上
$data['member_status'] = 1;
$data['end_time'] = time() + 60 * 60 * 24 * 300;
$data['begin_time'] = time();
$data['created_at'] = time();
$data['member_status'] = $this->member_status;
$userInformationModel->attributes = $data;
if (!$userInformationModel->save()) {
return $this->getModelError($userInformationModel);
}
$t->commit();
return [
'code' => 0,
'msg' => '注册成功',
'msg' => '绑定成功',
];
} catch (\Exception $e) {
$t->rollBack();
return [
'code' => 1,
'msg' => '注册失败',
'msg' => '绑定失败',
];
}
}
/**
* 会员注册 填充
* @return array
*/
public function modify_user_buy()
{
if (!$this->validate()) {
return $this->getModelError();
}
$this->verifyUserData();
$userInformationModel = new UserInformation();
$userInformationData = UserInformation::findOne(['user_id' => $this->user_id]);
if (empty($userInformationData['user_id'])) {
return $this->apiReturnError('请先注册会员');
}
//有会员信息 该会员已注册
if ($userInformationData['ball_age']) {
return $this->apiReturnSuccess('会员已注册', $userInformationData, 1);
}
$userInformationData->college = $this->college;
$userInformationData->ball_age = $this->ball_age;
$userInformationData->address = $this->address;
$userInformationData->arm_length = $this->arm_length;
$userInformationData->glove = $this->glove;
$userInformationData->palm_size = $this->palm_size;
$userInformationData->shoes_size = $this->shoes_size;
$userInformationData->updated_at = time();
if (!$userInformationData->save()) {
return $this->getModelError($userInformationData);
}
return [
'code' => 0,
'msg' => '注册成功'
];
}
/** `
* 验证用户
* @return ApiHelper|array|null
*/
public function verifyUserData()
{
$user = ApiHelper::findOneUser($this->user_id, $this->cx_mch_id);
if ($user == null) {
return $this->apiReturnError('用户不存在', [], 1);
}
return $user;
}
/**
* 会员注册用户信息判断
* @return array
*/
public function verifyUserInfo()
{
$user = UserInformation::find()->alias('user_info')
->innerJoin(['user' => User::tableName()], 'user_info.user_id=user.id')
->where(['user_info.user_id' => $this->user_id])
->select('user_info.*,user.real_name,user.mobile_phone')
->asArray()->one();
if ($user['mobile_phone']) {
$user['mobile_phone'] = EncryptHelper::decryptMobilePhone($user['mobile_phone']);
}
if ($user['end_time']) {
$user['end_time'] = date('Y-m-d', $user['end_time']);
}
$user['member_status'] = $user['member_status'] == 0 ? 0 : 1;
$user['fill_status'] = empty($user['ball_age']) ? 0 : 1;
if ($user['store_id']) {
$store = Store::find()->where(['id' => $user['store_id']])->asArray()->one();
$user['store_name'] = $store['name'];
}
return [
'code' => 0,
'msg' => '会员信息',
'data' => $user
];
}
/**
* 会员信息填充
* @param $request
* @return array
*/
public function userPersonal($request)
{
if ($request->isGet) {
return $this->verifyUserInfo();
}
if ($request->isPost) {
if (!$this->validate()) {
return $this->getModelError();
}
$user = $this->verifyUserData();
$userInformationModel = UserInformation::findOne(['user_id' => $this->user_id]);
$data['updated_at'] = time();
if ($userInformationModel == null) {
$userInformationModel = new UserInformation();
$data['created_at'] = time();
}
//开启事务
$t = \Yii::$app->db->beginTransaction();
try {
//user表添加真实姓名跟手机号
if ($this->real_name) {
$user->real_name = $this->real_name;
}
if ($this->mobile_phone) {
// $user->mobile_phone = EncryptHelper::encryptMobilePhone($this->mobile_phone);
}
if (!$user->save())
return $this->getModelError($user);
// 年龄 体重 身高 门店 所属地 学院 球龄 地址 臂长 手掌大小 手套尺寸 鞋码
$data['user_id'] = $this->user_id;
//user_information表添加其他信息
//体重
if ($this->weight) {
$data['weight'] = $this->weight;
}
//身高
if ($this->height) {
$data['height'] = $this->height;
}
//年龄
if ($this->age) {
$data['age'] = $this->age;
}
//门店
if ($this->store_id) {
$data['store_id'] = $this->store_id;
}
//所属地
if ($this->territory) {
$data['territory'] = $this->territory;
}
//学院
if ($this->college) {
$data['college'] = $this->college;
}
//球龄
if ($this->ball_age) {
$data['ball_age'] = $this->ball_age;
}
//地址
if ($this->address) {
$data['address'] = $this->address;
}
//臂长
if ($this->arm_length) {
$data['arm_length'] = $this->arm_length;
}
//手套尺寸
if ($this->glove) {
$data['glove'] = $this->glove;
}
//手掌大小
if ($this->palm_size) {
$data['palm_size'] = $this->palm_size;
}
//鞋子大小
if ($this->shoes_size) {
$data['shoes_size'] = $this->shoes_size;
}
$userInformationModel->attributes = $data;
if (!$userInformationModel->save())
return $this->getModelError($userInformationModel);
$t->commit();
return [
'code' => 0,
'msg' => '成功',
'data' => []
];
} catch (\Exception $ex) {
$t->rollBack();
return [
'code' => 1,
'msg' => '失败',
'data' => null
];
}
}
return $this->apiReturnError('非法请求');
}
}

View File

@ -60,8 +60,12 @@ class ReportEditForm extends AdminModel
if ($this->user_type == 1) {
$this->model->initial_path = $this->final_path;
$this->model->step = 1;
$this->model->initial_at = time();
} else {
$this->model->final_path = $this->final_path;
$this->model->step = 2;
$this->model->final_at = time();
}
if (!$this->model->save()) {

View File

@ -108,7 +108,7 @@ class ReportListForm extends AdminModel
}
$list[$index] = $item;
$list[$index] = $item;
}
$data = [];
$data['code'] = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

View File

@ -102202,3 +102202,207 @@ $_SERVER = [
'REQUEST_TIME_FLOAT' => 1698224878.5503
'REQUEST_TIME' => 1698224878
]
2023-10-25 17:56:10 [127.0.0.1][-][-][error][yii\web\HttpException:400] yii\web\BadRequestHttpException: 您提交的数据无法被验证。 in D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Controller.php:220
Stack trace:
#0 D:\phpstudy_pro\WWW\cxfoot\modules\api\controllers\Controller.php(106): yii\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Controller.php(176): app\modules\api\controllers\Controller->beforeAction(Object(yii\base\InlineAction))
#2 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Module.php(552): yii\base\Controller->runAction('login', Array)
#3 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('api/auth/login', Array)
#4 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#5 D:\phpstudy_pro\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
#6 {main}
2023-10-25 17:56:10 [127.0.0.1][-][-][info][application] $_GET = []
$_POST = [
'username' => 'Umcvqe1'
'password' => '123456'
]
$_FILES = []
$_COOKIE = []
$_SERVER = [
'PATH' => 'C:\\imagemagick;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;E:\\anzhuang\\QTSystem\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Git\\cmd;D:\\svn\\bin;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;D:\\Xftp 7\\;D:\\微信web开发者工具\\dll;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;;D:\\PhpStorm 2021.2.1\\bin;;D:\\Microsoft VS Code\\bin;D:\\phpstudy_pro\\Extensions\\php\\php7.4.3nts;C:\\Users\\Administrator\\AppData\\Local\\ComposerSetup\\bin;C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\bin'
'SYSTEMROOT' => 'C:\\WINDOWS'
'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe'
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
'WINDIR' => 'C:\\WINDOWS'
'PHPRC' => 'D:/phpstudy_pro/Extensions/php/php7.3.4nts'
'_FCGI_SHUTDOWN_EVENT_' => '9184'
'SCRIPT_NAME' => '/index.php'
'REQUEST_URI' => '/api/auth/login'
'QUERY_STRING' => ''
'REQUEST_METHOD' => 'POST'
'SERVER_PROTOCOL' => 'HTTP/1.1'
'GATEWAY_INTERFACE' => 'CGI/1.1'
'REDIRECT_URL' => '/api/auth/login'
'REMOTE_PORT' => '57982'
'SCRIPT_FILENAME' => 'D:/phpstudy_pro/WWW/cxfoot/web/index.php'
'SERVER_ADMIN' => 'admin@example.com'
'CONTEXT_DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'CONTEXT_PREFIX' => ''
'REQUEST_SCHEME' => 'http'
'DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'REMOTE_ADDR' => '127.0.0.1'
'SERVER_PORT' => '80'
'SERVER_ADDR' => '127.0.0.1'
'SERVER_NAME' => 'cxfoot.com'
'SERVER_SOFTWARE' => 'Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02'
'SERVER_SIGNATURE' => ''
'SystemRoot' => 'C:\\WINDOWS'
'CONTENT_LENGTH' => '283'
'CONTENT_TYPE' => 'multipart/form-data; boundary=--------------------------570181511065302695097856'
'HTTP_HOST' => 'cxfoot.com'
'HTTP_CONNECTION' => 'close'
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br'
'HTTP_ACCEPT' => '*/*'
'HTTP_CACHE_CONTROL' => 'no-cache'
'HTTP_USER_AGENT' => 'PostmanRuntime-ApipostRuntime/1.1.0'
'REDIRECT_STATUS' => '200'
'FCGI_ROLE' => 'RESPONDER'
'PHP_SELF' => '/index.php'
'REQUEST_TIME_FLOAT' => 1698227770.2351
'REQUEST_TIME' => 1698227770
]
2023-10-25 17:58:23 [127.0.0.1][65][-][error][yii\web\HttpException:400] yii\web\BadRequestHttpException: 您提交的数据无法被验证。 in D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Controller.php:220
Stack trace:
#0 D:\phpstudy_pro\WWW\cxfoot\modules\api\controllers\Controller.php(106): yii\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Controller.php(176): app\modules\api\controllers\Controller->beforeAction(Object(yii\base\InlineAction))
#2 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Module.php(552): yii\base\Controller->runAction('modify-user', Array)
#3 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('api/user/modify...', Array)
#4 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#5 D:\phpstudy_pro\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
#6 {main}
2023-10-25 17:58:23 [127.0.0.1][65][-][info][application] $_GET = [
'access_token' => 'bVM2WGUxaVgwZk1nelZuMnpheXE5cDA0dXQ1dkI0QzIyaHlJbVpNWTNIWT0='
]
$_POST = []
$_FILES = []
$_COOKIE = [
'_csrf' => 'e6609f17cbf19d378135d3de25198d966c50ecaa1c0c2fe85f0fef28ced2b261a:2:{i:0'
's:5:\"_csrf\"' => ''
'i:1' => ''
's:32:\"8rl_y8MvbciCILXPzaEK2oh2FhSz47dg\"' => ''
'}' => ''
]
$_SERVER = [
'PATH' => 'C:\\imagemagick;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;E:\\anzhuang\\QTSystem\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Git\\cmd;D:\\svn\\bin;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;D:\\Xftp 7\\;D:\\微信web开发者工具\\dll;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;;D:\\PhpStorm 2021.2.1\\bin;;D:\\Microsoft VS Code\\bin;D:\\phpstudy_pro\\Extensions\\php\\php7.4.3nts;C:\\Users\\Administrator\\AppData\\Local\\ComposerSetup\\bin;C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\bin'
'SYSTEMROOT' => 'C:\\WINDOWS'
'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe'
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
'WINDIR' => 'C:\\WINDOWS'
'PHPRC' => 'D:/phpstudy_pro/Extensions/php/php7.3.4nts'
'_FCGI_SHUTDOWN_EVENT_' => '9080'
'SCRIPT_NAME' => '/index.php'
'REQUEST_URI' => '/api/user/modify-user?access_token=bVM2WGUxaVgwZk1nelZuMnpheXE5cDA0dXQ1dkI0QzIyaHlJbVpNWTNIWT0%3D'
'QUERY_STRING' => 'access_token=bVM2WGUxaVgwZk1nelZuMnpheXE5cDA0dXQ1dkI0QzIyaHlJbVpNWTNIWT0%3D'
'REQUEST_METHOD' => 'POST'
'SERVER_PROTOCOL' => 'HTTP/1.1'
'GATEWAY_INTERFACE' => 'CGI/1.1'
'REDIRECT_QUERY_STRING' => 'access_token=bVM2WGUxaVgwZk1nelZuMnpheXE5cDA0dXQ1dkI0QzIyaHlJbVpNWTNIWT0%3D'
'REDIRECT_URL' => '/api/user/modify-user'
'REMOTE_PORT' => '58094'
'SCRIPT_FILENAME' => 'D:/phpstudy_pro/WWW/cxfoot/web/index.php'
'SERVER_ADMIN' => 'admin@example.com'
'CONTEXT_DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'CONTEXT_PREFIX' => ''
'REQUEST_SCHEME' => 'http'
'DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'REMOTE_ADDR' => '127.0.0.1'
'SERVER_PORT' => '80'
'SERVER_ADDR' => '127.0.0.1'
'SERVER_NAME' => 'cxfoot.com'
'SERVER_SOFTWARE' => 'Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02'
'SERVER_SIGNATURE' => ''
'SystemRoot' => 'C:\\WINDOWS'
'CONTENT_LENGTH' => '0'
'HTTP_HOST' => 'cxfoot.com'
'HTTP_COOKIE' => '_csrf=e6609f17cbf19d378135d3de25198d966c50ecaa1c0c2fe85f0fef28ced2b261a:2:%7Bi:0;s:5:%22_csrf%22;i:1;s:32:%228rl_y8MvbciCILXPzaEK2oh2FhSz47dg%22;%7D'
'HTTP_CONNECTION' => 'close'
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br'
'HTTP_ACCEPT' => '*/*'
'HTTP_CACHE_CONTROL' => 'no-cache'
'HTTP_USER_AGENT' => 'PostmanRuntime-ApipostRuntime/1.1.0'
'REDIRECT_STATUS' => '200'
'FCGI_ROLE' => 'RESPONDER'
'PHP_SELF' => '/index.php'
'REQUEST_TIME_FLOAT' => 1698227902.9942
'REQUEST_TIME' => 1698227902
]
2023-10-25 19:06:00 [127.0.0.1][-][rtg5v642emvl8of88f34113ke9][error][yii\web\HttpException:404] yii\base\InvalidRouteException: Unable to resolve the request "upload/0/1/upload/image/2022/1119/1668852380664724.png". in D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Module.php:561
Stack trace:
#0 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('upload/0/1/uplo...', Array)
#1 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#2 D:\phpstudy_pro\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
#3 {main}
Next yii\web\NotFoundHttpException: 页面未找到。 in D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\web\Application.php:115
Stack trace:
#0 D:\phpstudy_pro\WWW\cxfoot\vendor\yiisoft\yii2\base\Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#1 D:\phpstudy_pro\WWW\cxfoot\web\index.php(11): yii\base\Application->run()
#2 {main}
2023-10-25 19:06:00 [127.0.0.1][-][rtg5v642emvl8of88f34113ke9][info][application] $_GET = []
$_POST = []
$_FILES = []
$_COOKIE = [
'PHPSESSID' => 'rtg5v642emvl8of88f34113ke9'
'_csrf' => 'cfe961e2bf8116c0cd94d1653d40764781c3555617fb3fe2fd465ea9feb04915a:2:{i:0;s:5:\"_csrf\";i:1;s:32:\"lPVy0PhqZSoj8SryHYT1frnzgoyybB78\";}'
]
$_SESSION = [
'__flash' => []
'__captcha/store/passport/captcha' => 'W7NS'
'__captcha/store/passport/captchacount' => 1
]
$_SERVER = [
'PATH' => 'C:\\imagemagick;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;E:\\anzhuang\\QTSystem\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Git\\cmd;D:\\svn\\bin;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python311\\Scripts;D:\\Xftp 7\\;D:\\微信web开发者工具\\dll;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;;D:\\PhpStorm 2021.2.1\\bin;;D:\\Microsoft VS Code\\bin;D:\\phpstudy_pro\\Extensions\\php\\php7.4.3nts;C:\\Users\\Administrator\\AppData\\Local\\ComposerSetup\\bin;C:\\Users\\Administrator\\AppData\\Roaming\\Composer\\vendor\\bin'
'SYSTEMROOT' => 'C:\\WINDOWS'
'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe'
'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
'WINDIR' => 'C:\\WINDOWS'
'PHPRC' => 'D:/phpstudy_pro/Extensions/php/php7.3.4nts'
'_FCGI_SHUTDOWN_EVENT_' => '9080'
'SCRIPT_NAME' => '/index.php'
'REQUEST_URI' => '/upload/0/1/upload/image/2022/1119/1668852380664724.png'
'QUERY_STRING' => ''
'REQUEST_METHOD' => 'GET'
'SERVER_PROTOCOL' => 'HTTP/1.1'
'GATEWAY_INTERFACE' => 'CGI/1.1'
'REDIRECT_URL' => '/upload/0/1/upload/image/2022/1119/1668852380664724.png'
'REMOTE_PORT' => '61512'
'SCRIPT_FILENAME' => 'D:/phpstudy_pro/WWW/cxfoot/web/index.php'
'SERVER_ADMIN' => 'admin@example.com'
'CONTEXT_DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'CONTEXT_PREFIX' => ''
'REQUEST_SCHEME' => 'http'
'DOCUMENT_ROOT' => 'D:/phpstudy_pro/WWW/cxfoot/web'
'REMOTE_ADDR' => '127.0.0.1'
'SERVER_PORT' => '80'
'SERVER_ADDR' => '127.0.0.1'
'SERVER_NAME' => 'cxfoot.com'
'SERVER_SOFTWARE' => 'Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02'
'SERVER_SIGNATURE' => ''
'SystemRoot' => 'C:\\WINDOWS'
'HTTP_COOKIE' => 'PHPSESSID=rtg5v642emvl8of88f34113ke9; _csrf=cfe961e2bf8116c0cd94d1653d40764781c3555617fb3fe2fd465ea9feb04915a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22lPVy0PhqZSoj8SryHYT1frnzgoyybB78%22%3B%7D'
'HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.9'
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate'
'HTTP_REFERER' => 'http://cxfoot.com/store/passport/login?return_url=http%3A%2F%2Fcxfoot.com%2Fstore%2Freport%2Fedit%3Fid%3D1'
'HTTP_ACCEPT' => 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8'
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
'HTTP_CONNECTION' => 'close'
'HTTP_HOST' => 'cxfoot.com'
'REDIRECT_STATUS' => '200'
'FCGI_ROLE' => 'RESPONDER'
'PHP_SELF' => '/index.php'
'REQUEST_TIME_FLOAT' => 1698231960.6811
'REQUEST_TIME' => 1698231960
]

View File

@ -0,0 +1,14 @@
外卖:
saas权限更改多商户
餐饮商户分类筛选:
拼单:
下单:
其它接口修修补补:
{"user_id":10013,"user_detail_id":3,"applet_id":10006,"shop_id":10006}
#hema_user
#hema_user_detail
#hema_applet
#hema_food_shop

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Some files were not shown because too many files have changed in this diff Show More