Browse Source

社区服务站点

master
lanzu_qsy 6 years ago
parent
commit
ed2cc5713f
  1. 1
      .gitignore
  2. 57
      app/Admin/Common/Auth.php
  3. 144
      app/Admin/Common/Images.php
  4. 118
      app/Admin/Controllers/LanzuCsInfoController.php
  5. 74
      app/Admin/Controllers/LanzuCsWithdrawController.php
  6. 16
      app/Admin/Repositories/LanzuCsInfo.php
  7. 16
      app/Admin/Repositories/LanzuCsWithdraw.php
  8. 2
      app/Admin/routes.php
  9. 15
      app/Models/LanzuCsInfo.php
  10. 17
      app/Models/LanzuCsWithdraw.php
  11. 96
      dcat_admin_ide_helper.php
  12. 15
      resources/lang/zh-CN/lanzu-cs-info.php
  13. 14
      resources/lang/zh-CN/lanzu-cs-withdraw.php

1
.gitignore

@ -13,3 +13,4 @@ yarn-error.log
.idea
.vscode/launch.json
/storage/debugbar

57
app/Admin/Common/Auth.php

@ -0,0 +1,57 @@
<?php
namespace App\Admin\Common;
use App\Models\AdminRoles;
use App\Models\AdminRoleUsers;
use App\Models\AdminUsers;
use Dcat\Admin\Controllers\AdminController;
use Illuminate\Support\Facades\Hash;
class Auth extends AdminController
{
/**
* 添加管理员帐号
* @param $form //表单模型
* @param $model
* @param $newId //添加信息成功后返回的ID
* @param $roles
* @return mixed
*/
public static function addAdminUser($form,$model,$cid,$roles)
{
$adu = new AdminUsers();
if (!$cid) {
return '-2';
}
$row = $model::find($cid);
//>>1.添加市场经理前,去查询是否已存在相同的帐号
$count = $adu->where(['username' => $form->phone])->count();
if ($count) {
$row->delete();
return '-1';
}
//>>2.添加市场经理登陆帐号
$adu->username = $form->phone;
$adu->password = Hash::make(substr($form->phone, -5));
$adu->name = $form->name;
$adu->status = $form->status;
$res = $adu->save();
if (!$res) {
//删除刚添加数据
$row->delete();
return '-2';
}
//>>3.将帐号id关联
$row->admin_user_id = $adu->id;
$row->save();
//添加到admin roles中
$lanzu_role = AdminRoles::where('slug', $roles)->first();
$aru = new AdminRoleUsers();
$aru->role_id = $lanzu_role->id;
$aru->user_id = $adu->id;
$aru->save();
}
}

144
app/Admin/Common/Images.php

@ -0,0 +1,144 @@
<?php
namespace App\Admin\Common;
use Dcat\Admin\Controllers\AdminController;
use GuzzleHttp\Client;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
class Images extends AdminController
{
private function getWxToken()
{
//获取token
$row = DB::table('ims_cjdc_system')
->select('appid','appsecret')
->where('uniacid', 2)
->first();
$appid=$row->appid;
$secret=$row->appsecret;
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".$appid."&secret=".$secret;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
$data = curl_exec($ch);
curl_close($ch);
$data = json_decode($data,true);
return $data['access_token'];
}
public function createQrCode($param,$path)
{
$access_token = $this->getWxToken();
$data=array(
'scene'=>$param,
"page"=>$path,
"width"=>100
);
$data = json_encode($data);
$url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=".$access_token."";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
/**
* 上传文件到oss
* @param $base64 //文件流
* @param $fileName //文件名称
* @return bool
*/
public function uploadOss($base64,$fileName)
{
return Storage::put($fileName,$base64);
}
public function test()
{
$wx_head = 'http://www.marketmanage.com/uploads/20200728/d5a491cd3d8d071e3212c3478e8e35a1.jpg';
$avatar_file = file_get_contents($wx_head);
file_put_contents('./logo.jpg',$avatar_file);
$logo = $this->changeAvatar($avatar_file);
file_put_contents('./logo_new.jpg',$logo);
//$qr_code = $this->createQrCode('','');
}
public function changeAvatar($avatar)
{
//处理用户头像为圆形icon
$avatar = imagecreatefromstring($avatar);
$w = imagesx($avatar)-5;
$h = imagesy($avatar)-5;
$w = min($w, $h);
$h = $w;
$img = imagecreatetruecolor($w, $h);
imagesavealpha($img, true);
$bg = imagecolorallocatealpha($img, 255, 255, 255, 127);
imagefill($img, 0, 0, $bg);
$r = $w / 2; //圆半径
$y_x = $r; //圆心X坐标
$y_y = $r; //圆心Y坐标
for ($x = 0; $x < $w; $x++) {
for ($y = 0; $y < $h; $y++) {
$rgbColor = imagecolorat($avatar, $x, $y);
if (((($x - $r) * ($x - $r) + ($y - $r) * ($y - $r)) < ($r * $r))) {
imagesetpixel($img, $x, $y, $rgbColor);
}
}
}
ob_start();
imagepng($img);
imagedestroy($img);
imagedestroy($avatar);
$contents = ob_get_contents(); //读取缓存区的内容
ob_end_clean(); //清空缓存区
return $contents;
}
public function makeOnePic($qr_code, $logo) //二维码与头像组合
{
$qr_code = imagecreatefromstring($qr_code); //生成的二维码底色为白色
//设置二维码为透明底
imagesavealpha($qr_code, true); //这个设置一定要加上
$bg = imagecolorallocatealpha($qr_code, 255, 255, 255, 127); //拾取一个完全透明的颜色,最后一个参数127为全透明
imagefill($qr_code, 0, 0, $bg);
$icon = imagecreatefromstring($logo); //生成中间圆形logo (微信头像获取到的logo的大小为132px 132px)
$qr_width = imagesx($qr_code); //二维码图片宽度
$lg_width = imagesx($icon); //logo图片宽度
$lg_height = imagesy($icon); //logo图片高度
$qr_lg_width = $qr_width / 2.2;
$scale = $lg_width / $qr_lg_width;
$qr_lg_height = $lg_height / $scale;
$start_width = ($qr_width - $lg_width) / 2 ; //(获取logo的左上方的位置:( 外部的正方形-logo的宽 ) / 2,我这边存在1px的偏差 我就给+2啦)
imagecopyresampled($qr_code, $icon, $start_width, $start_width, 0, 0, $qr_lg_width, $qr_lg_height, $lg_width, $lg_height);
imagejpeg($qr_code,'./qrcode.png'); //保存
imagedestroy($qr_code);
imagedestroy($icon);
}
}

118
app/Admin/Controllers/LanzuCsInfoController.php

@ -0,0 +1,118 @@
<?php
namespace App\Admin\Controllers;
use App\Admin\Common\Auth;
use App\Admin\Common\Images;
use App\Admin\Repositories\LanzuCsInfo;
use App\Models\AdminUsers;
use Dcat\Admin\Admin;
use Dcat\Admin\Form;
use Dcat\Admin\Grid;
use Dcat\Admin\Show;
use Dcat\Admin\Controllers\AdminController;
use \App\Models\LanzuCsInfo as modelCsInfo;
class LanzuCsInfoController extends AdminController
{
/**
* Make a grid builder.
*
* @return Grid
*/
protected function grid()
{
return Grid::make(new LanzuCsInfo(), function (Grid $grid) {
$user = Admin::user();
if ($user->isRole('lanzu_cs')){//如何是社区站点角色登陆,则只能看到自己的信息
$grid->model()->where('admin_user_id', $user->id);
}
$grid->id->sortable();
$grid->name;
$grid->phone;
$grid->column('qrcode_path','二维码')->image('',50,50);
$grid->status('状态')->using(['禁用', '启用']);
$grid->address;
$grid->created_at->display(function ($time){
return date('Y-m-d H:i',$time);
});
$grid->disableViewButton();
$grid->filter(function (Grid\Filter $filter) {
$filter->equal('id');
});
});
}
/**
* Make a show builder.
*
* @param mixed $id
*
* @return Show
*/
protected function detail($id)
{
return Show::make($id, new LanzuCsInfo(), function (Show $show) {
$show->id;
$show->name;
$show->phone;
$show->address;
$show->admin_user_id;
$show->status;
$show->created_at;
$show->updated_at;
});
}
/**
* Make a form builder.
* @return Form
*/
protected function form()
{
return Form::make(new LanzuCsInfo(), function (Form $form) {
$form->display('id');
$form->text('name','名称')->required();
$form->text('user_id','用户ID')->required();
$form->tel('phone')->required();
$form->text('address','社区地址')->required();
$form->radio('status', '状态')->options(['禁用', '启用'])->default(1);
$form->saved(function (Form $form,$cid){
$model = new modelCsInfo();
if ($form->isCreating()) {
//>>1.添加登录帐号
$res = Auth::addAdminUser($form,$model,$cid,'lanzu_cs');
if ($res==-1){
return $form->error('该手机号作为登陆帐号已存在!');
}elseif ($res==-2){
return $form->error('添加失败!');
}
//>>2.生成小程序二维码
$images = new Images();
$param= 'p=index&sid=2';
$path= 'zh_cjdianc/pages/Liar/loginindex';
$qrcode = $images->createQrCode($param,$path);
$fileName = 'public/upload/' .'qrcode'.'/'. date('Y') . '/' . date('m-d') . '/' . rand(100000000000000,999999999999999).'.png';
$result = $images->uploadOss($qrcode,$fileName);
if ($result==true){
//>>3.保存二维码路径
$cs = $model->find($cid);
$cs->qrcode_path = $fileName;
$cs->save();
}
} else {
//>>4.编辑时同步登陆帐号状态
$adu = new AdminUsers();
$id = $form->getKey();
$row = $model::find($id);
$ad = $adu->find($row->admin_user_id);
$ad->status = $form->status;
$ad->save();
}
});
});
}
}

74
app/Admin/Controllers/LanzuCsWithdrawController.php

@ -0,0 +1,74 @@
<?php
namespace App\Admin\Controllers;
use App\Admin\Repositories\LanzuCsWithdraw;
use Dcat\Admin\Form;
use Dcat\Admin\Grid;
use Dcat\Admin\Show;
use Dcat\Admin\Controllers\AdminController;
class LanzuCsWithdrawController extends AdminController
{
/**
* Make a grid builder.
*
* @return Grid
*/
protected function grid()
{
return Grid::make(new LanzuCsWithdraw(), function (Grid $grid) {
$grid->id->sortable();
$grid->cs_id;
$grid->money;
$grid->status;
$grid->is_pay;
$grid->created_at;
$grid->updated_at->sortable();
$grid->filter(function (Grid\Filter $filter) {
$filter->equal('id');
});
});
}
/**
* Make a show builder.
*
* @param mixed $id
*
* @return Show
*/
protected function detail($id)
{
return Show::make($id, new LanzuCsWithdraw(), function (Show $show) {
$show->id;
$show->cs_id;
$show->money;
$show->status;
$show->is_pay;
$show->created_at;
$show->updated_at;
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
return Form::make(new LanzuCsWithdraw(), function (Form $form) {
$form->display('id');
$form->text('cs_id');
$form->text('money');
$form->text('status');
$form->text('is_pay');
$form->display('created_at');
$form->display('updated_at');
});
}
}

16
app/Admin/Repositories/LanzuCsInfo.php

@ -0,0 +1,16 @@
<?php
namespace App\Admin\Repositories;
use App\Models\LanzuCsInfo as Model;
use Dcat\Admin\Repositories\EloquentRepository;
class LanzuCsInfo extends EloquentRepository
{
/**
* Model.
*
* @var string
*/
protected $eloquentClass = Model::class;
}

16
app/Admin/Repositories/LanzuCsWithdraw.php

@ -0,0 +1,16 @@
<?php
namespace App\Admin\Repositories;
use App\Models\LanzuCsWithdraw as Model;
use Dcat\Admin\Repositories\EloquentRepository;
class LanzuCsWithdraw extends EloquentRepository
{
/**
* Model.
*
* @var string
*/
protected $eloquentClass = Model::class;
}

2
app/Admin/routes.php

@ -21,6 +21,8 @@ Route::group([
$router->resource('/store', 'ImsCjdcStoreController');
$router->resource('/mp_withdraw', 'LanzuMpWithdrawController');
$router->resource('/mm_withdraw', 'LanzuMmWithdrawController');
$router->resource('/cs', 'LanzuCsInfoController');
$router->resource('/cs_withdraw', 'LanzuCsWithdrawController');
$router->any('/mm_list', 'LanzuMmWithdrawController@mmInfoList');
$router->any('/api/getMarket', 'LanzuMmInfoController@getMarket');

15
app/Models/LanzuCsInfo.php

@ -0,0 +1,15 @@
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class LanzuCsInfo extends Model
{
use HasDateTimeFormatter;
protected $table = 'lanzu_cs_info';
protected $dateFormat = 'U';
}

17
app/Models/LanzuCsWithdraw.php

@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
class LanzuCsWithdraw extends Model
{
use HasDateTimeFormatter;
use SoftDeletes;
protected $table = 'lanzu_cs_withdraw';
protected $dateFormat = 'U';
}

96
dcat_admin_ide_helper.php

@ -40,10 +40,8 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection bank_name
* @property Grid\Column|Collection bank_card
* @property Grid\Column|Collection bank_addr
* @property Grid\Column|Collection admin_user_id
* @property Grid\Column|Collection status
* @property Grid\Column|Collection market_id
* @property Grid\Column|Collection is_del
* @property Grid\Column|Collection logo
* @property Grid\Column|Collection address
* @property Grid\Column|Collection introduce
@ -56,15 +54,20 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection dn_poundage
* @property Grid\Column|Collection dm_poundage
* @property Grid\Column|Collection yd_poundage
* @property Grid\Column|Collection dada_number
* @property Grid\Column|Collection is_open_dada
* @property Grid\Column|Collection loudspeaker_imei
* @property Grid\Column|Collection dishes_menu_intro
* @property Grid\Column|Collection create_time
* @property Grid\Column|Collection tel
* @property Grid\Column|Collection is_rest
* @property Grid\Column|Collection award_money
* @property Grid\Column|Collection img
* @property Grid\Column|Collection start_at
* @property Grid\Column|Collection freight
* @property Grid\Column|Collection money
* @property Grid\Column|Collection mp_id
* @property Grid\Column|Collection is_pay
* @property Grid\Column|Collection mm_id
* @property Grid\Column|Collection admin_user_id
* @property Grid\Column|Collection activity
* @property Grid\Column|Collection forward
* @property Grid\Column|Collection repay
@ -253,7 +256,6 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection area_name
* @property Grid\Column|Collection num
* @property Grid\Column|Collection store_id
* @property Grid\Column|Collection img
* @property Grid\Column|Collection stars
* @property Grid\Column|Collection time
* @property Grid\Column|Collection order_id
@ -391,6 +393,8 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection waimai_pay_temp
* @property Grid\Column|Collection dangmian_pay_temp
* @property Grid\Column|Collection ziti_pay_temp
* @property Grid\Column|Collection dada_number
* @property Grid\Column|Collection is_open_dada
* @property Grid\Column|Collection deleted_at
* @property Grid\Column|Collection sender
* @property Grid\Column|Collection is_email
@ -441,7 +445,6 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection ps_money
* @property Grid\Column|Collection mj_money
* @property Grid\Column|Collection xyh_money
* @property Grid\Column|Collection tel
* @property Grid\Column|Collection jj_note
* @property Grid\Column|Collection area
* @property Grid\Column|Collection del
@ -488,6 +491,7 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection total_money
* @property Grid\Column|Collection dada_status
* @property Grid\Column|Collection print_num
* @property Grid\Column|Collection global_order_id
* @property Grid\Column|Collection mchid
* @property Grid\Column|Collection wxkey
* @property Grid\Column|Collection apiclient_cert
@ -531,9 +535,6 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection sss_shop_token
* @property Grid\Column|Collection time4
* @property Grid\Column|Collection announcement
* @property Grid\Column|Collection is_rest
* @property Grid\Column|Collection start_at
* @property Grid\Column|Collection freight
* @property Grid\Column|Collection yyzz
* @property Grid\Column|Collection md_area
* @property Grid\Column|Collection md_type
@ -560,7 +561,6 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection store_mchid
* @property Grid\Column|Collection cash_code
* @property Grid\Column|Collection store_wallet
* @property Grid\Column|Collection award_money
* @property Grid\Column|Collection mm_user_id
* @property Grid\Column|Collection add_time
* @property Grid\Column|Collection category
@ -709,6 +709,7 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection order_money
* @property Grid\Column|Collection order_number
* @property Grid\Column|Collection hy_day
* @property Grid\Column|Collection unionid
* @property Grid\Column|Collection is_default
* @property Grid\Column|Collection yhk_num
* @property Grid\Column|Collection yh_info
@ -843,7 +844,6 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection language
* @property Grid\Column|Collection headimgurl
* @property Grid\Column|Collection subscribe_time
* @property Grid\Column|Collection unionid
* @property Grid\Column|Collection groupid
* @property Grid\Column|Collection tagid_list
* @property Grid\Column|Collection subscribe_scene
@ -1153,10 +1153,12 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection logo_url
* @property Grid\Column|Collection success
* @property Grid\Column|Collection error
* @property Grid\Column|Collection cs_id
* @property Grid\Column|Collection user_type
* @property Grid\Column|Collection money_type
* @property Grid\Column|Collection source_type
* @property Grid\Column|Collection comment
* @property Grid\Column|Collection is_del
* @property Grid\Column|Collection balance
* @property Grid\Column|Collection is_operated
* @property Grid\Column|Collection c_attitude
@ -1202,10 +1204,8 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection bank_name(string $label = null)
* @method Grid\Column|Collection bank_card(string $label = null)
* @method Grid\Column|Collection bank_addr(string $label = null)
* @method Grid\Column|Collection admin_user_id(string $label = null)
* @method Grid\Column|Collection status(string $label = null)
* @method Grid\Column|Collection market_id(string $label = null)
* @method Grid\Column|Collection is_del(string $label = null)
* @method Grid\Column|Collection logo(string $label = null)
* @method Grid\Column|Collection address(string $label = null)
* @method Grid\Column|Collection introduce(string $label = null)
@ -1218,15 +1218,20 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection dn_poundage(string $label = null)
* @method Grid\Column|Collection dm_poundage(string $label = null)
* @method Grid\Column|Collection yd_poundage(string $label = null)
* @method Grid\Column|Collection dada_number(string $label = null)
* @method Grid\Column|Collection is_open_dada(string $label = null)
* @method Grid\Column|Collection loudspeaker_imei(string $label = null)
* @method Grid\Column|Collection dishes_menu_intro(string $label = null)
* @method Grid\Column|Collection create_time(string $label = null)
* @method Grid\Column|Collection tel(string $label = null)
* @method Grid\Column|Collection is_rest(string $label = null)
* @method Grid\Column|Collection award_money(string $label = null)
* @method Grid\Column|Collection img(string $label = null)
* @method Grid\Column|Collection start_at(string $label = null)
* @method Grid\Column|Collection freight(string $label = null)
* @method Grid\Column|Collection money(string $label = null)
* @method Grid\Column|Collection mp_id(string $label = null)
* @method Grid\Column|Collection is_pay(string $label = null)
* @method Grid\Column|Collection mm_id(string $label = null)
* @method Grid\Column|Collection admin_user_id(string $label = null)
* @method Grid\Column|Collection activity(string $label = null)
* @method Grid\Column|Collection forward(string $label = null)
* @method Grid\Column|Collection repay(string $label = null)
@ -1415,7 +1420,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection area_name(string $label = null)
* @method Grid\Column|Collection num(string $label = null)
* @method Grid\Column|Collection store_id(string $label = null)
* @method Grid\Column|Collection img(string $label = null)
* @method Grid\Column|Collection stars(string $label = null)
* @method Grid\Column|Collection time(string $label = null)
* @method Grid\Column|Collection order_id(string $label = null)
@ -1553,6 +1557,8 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection waimai_pay_temp(string $label = null)
* @method Grid\Column|Collection dangmian_pay_temp(string $label = null)
* @method Grid\Column|Collection ziti_pay_temp(string $label = null)
* @method Grid\Column|Collection dada_number(string $label = null)
* @method Grid\Column|Collection is_open_dada(string $label = null)
* @method Grid\Column|Collection deleted_at(string $label = null)
* @method Grid\Column|Collection sender(string $label = null)
* @method Grid\Column|Collection is_email(string $label = null)
@ -1603,7 +1609,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection ps_money(string $label = null)
* @method Grid\Column|Collection mj_money(string $label = null)
* @method Grid\Column|Collection xyh_money(string $label = null)
* @method Grid\Column|Collection tel(string $label = null)
* @method Grid\Column|Collection jj_note(string $label = null)
* @method Grid\Column|Collection area(string $label = null)
* @method Grid\Column|Collection del(string $label = null)
@ -1650,6 +1655,7 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection total_money(string $label = null)
* @method Grid\Column|Collection dada_status(string $label = null)
* @method Grid\Column|Collection print_num(string $label = null)
* @method Grid\Column|Collection global_order_id(string $label = null)
* @method Grid\Column|Collection mchid(string $label = null)
* @method Grid\Column|Collection wxkey(string $label = null)
* @method Grid\Column|Collection apiclient_cert(string $label = null)
@ -1693,9 +1699,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection sss_shop_token(string $label = null)
* @method Grid\Column|Collection time4(string $label = null)
* @method Grid\Column|Collection announcement(string $label = null)
* @method Grid\Column|Collection is_rest(string $label = null)
* @method Grid\Column|Collection start_at(string $label = null)
* @method Grid\Column|Collection freight(string $label = null)
* @method Grid\Column|Collection yyzz(string $label = null)
* @method Grid\Column|Collection md_area(string $label = null)
* @method Grid\Column|Collection md_type(string $label = null)
@ -1722,7 +1725,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection store_mchid(string $label = null)
* @method Grid\Column|Collection cash_code(string $label = null)
* @method Grid\Column|Collection store_wallet(string $label = null)
* @method Grid\Column|Collection award_money(string $label = null)
* @method Grid\Column|Collection mm_user_id(string $label = null)
* @method Grid\Column|Collection add_time(string $label = null)
* @method Grid\Column|Collection category(string $label = null)
@ -1871,6 +1873,7 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection order_money(string $label = null)
* @method Grid\Column|Collection order_number(string $label = null)
* @method Grid\Column|Collection hy_day(string $label = null)
* @method Grid\Column|Collection unionid(string $label = null)
* @method Grid\Column|Collection is_default(string $label = null)
* @method Grid\Column|Collection yhk_num(string $label = null)
* @method Grid\Column|Collection yh_info(string $label = null)
@ -2005,7 +2008,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection language(string $label = null)
* @method Grid\Column|Collection headimgurl(string $label = null)
* @method Grid\Column|Collection subscribe_time(string $label = null)
* @method Grid\Column|Collection unionid(string $label = null)
* @method Grid\Column|Collection groupid(string $label = null)
* @method Grid\Column|Collection tagid_list(string $label = null)
* @method Grid\Column|Collection subscribe_scene(string $label = null)
@ -2315,10 +2317,12 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection logo_url(string $label = null)
* @method Grid\Column|Collection success(string $label = null)
* @method Grid\Column|Collection error(string $label = null)
* @method Grid\Column|Collection cs_id(string $label = null)
* @method Grid\Column|Collection user_type(string $label = null)
* @method Grid\Column|Collection money_type(string $label = null)
* @method Grid\Column|Collection source_type(string $label = null)
* @method Grid\Column|Collection comment(string $label = null)
* @method Grid\Column|Collection is_del(string $label = null)
* @method Grid\Column|Collection balance(string $label = null)
* @method Grid\Column|Collection is_operated(string $label = null)
* @method Grid\Column|Collection c_attitude(string $label = null)
@ -2369,10 +2373,8 @@ namespace Dcat\Admin {
* @property Show\Field|Collection bank_name
* @property Show\Field|Collection bank_card
* @property Show\Field|Collection bank_addr
* @property Show\Field|Collection admin_user_id
* @property Show\Field|Collection status
* @property Show\Field|Collection market_id
* @property Show\Field|Collection is_del
* @property Show\Field|Collection logo
* @property Show\Field|Collection address
* @property Show\Field|Collection introduce
@ -2385,15 +2387,20 @@ namespace Dcat\Admin {
* @property Show\Field|Collection dn_poundage
* @property Show\Field|Collection dm_poundage
* @property Show\Field|Collection yd_poundage
* @property Show\Field|Collection dada_number
* @property Show\Field|Collection is_open_dada
* @property Show\Field|Collection loudspeaker_imei
* @property Show\Field|Collection dishes_menu_intro
* @property Show\Field|Collection create_time
* @property Show\Field|Collection tel
* @property Show\Field|Collection is_rest
* @property Show\Field|Collection award_money
* @property Show\Field|Collection img
* @property Show\Field|Collection start_at
* @property Show\Field|Collection freight
* @property Show\Field|Collection money
* @property Show\Field|Collection mp_id
* @property Show\Field|Collection is_pay
* @property Show\Field|Collection mm_id
* @property Show\Field|Collection admin_user_id
* @property Show\Field|Collection activity
* @property Show\Field|Collection forward
* @property Show\Field|Collection repay
@ -2582,7 +2589,6 @@ namespace Dcat\Admin {
* @property Show\Field|Collection area_name
* @property Show\Field|Collection num
* @property Show\Field|Collection store_id
* @property Show\Field|Collection img
* @property Show\Field|Collection stars
* @property Show\Field|Collection time
* @property Show\Field|Collection order_id
@ -2720,6 +2726,8 @@ namespace Dcat\Admin {
* @property Show\Field|Collection waimai_pay_temp
* @property Show\Field|Collection dangmian_pay_temp
* @property Show\Field|Collection ziti_pay_temp
* @property Show\Field|Collection dada_number
* @property Show\Field|Collection is_open_dada
* @property Show\Field|Collection deleted_at
* @property Show\Field|Collection sender
* @property Show\Field|Collection is_email
@ -2770,7 +2778,6 @@ namespace Dcat\Admin {
* @property Show\Field|Collection ps_money
* @property Show\Field|Collection mj_money
* @property Show\Field|Collection xyh_money
* @property Show\Field|Collection tel
* @property Show\Field|Collection jj_note
* @property Show\Field|Collection area
* @property Show\Field|Collection del
@ -2817,6 +2824,7 @@ namespace Dcat\Admin {
* @property Show\Field|Collection total_money
* @property Show\Field|Collection dada_status
* @property Show\Field|Collection print_num
* @property Show\Field|Collection global_order_id
* @property Show\Field|Collection mchid
* @property Show\Field|Collection wxkey
* @property Show\Field|Collection apiclient_cert
@ -2860,9 +2868,6 @@ namespace Dcat\Admin {
* @property Show\Field|Collection sss_shop_token
* @property Show\Field|Collection time4
* @property Show\Field|Collection announcement
* @property Show\Field|Collection is_rest
* @property Show\Field|Collection start_at
* @property Show\Field|Collection freight
* @property Show\Field|Collection yyzz
* @property Show\Field|Collection md_area
* @property Show\Field|Collection md_type
@ -2889,7 +2894,6 @@ namespace Dcat\Admin {
* @property Show\Field|Collection store_mchid
* @property Show\Field|Collection cash_code
* @property Show\Field|Collection store_wallet
* @property Show\Field|Collection award_money
* @property Show\Field|Collection mm_user_id
* @property Show\Field|Collection add_time
* @property Show\Field|Collection category
@ -3038,6 +3042,7 @@ namespace Dcat\Admin {
* @property Show\Field|Collection order_money
* @property Show\Field|Collection order_number
* @property Show\Field|Collection hy_day
* @property Show\Field|Collection unionid
* @property Show\Field|Collection is_default
* @property Show\Field|Collection yhk_num
* @property Show\Field|Collection yh_info
@ -3172,7 +3177,6 @@ namespace Dcat\Admin {
* @property Show\Field|Collection language
* @property Show\Field|Collection headimgurl
* @property Show\Field|Collection subscribe_time
* @property Show\Field|Collection unionid
* @property Show\Field|Collection groupid
* @property Show\Field|Collection tagid_list
* @property Show\Field|Collection subscribe_scene
@ -3482,10 +3486,12 @@ namespace Dcat\Admin {
* @property Show\Field|Collection logo_url
* @property Show\Field|Collection success
* @property Show\Field|Collection error
* @property Show\Field|Collection cs_id
* @property Show\Field|Collection user_type
* @property Show\Field|Collection money_type
* @property Show\Field|Collection source_type
* @property Show\Field|Collection comment
* @property Show\Field|Collection is_del
* @property Show\Field|Collection balance
* @property Show\Field|Collection is_operated
* @property Show\Field|Collection c_attitude
@ -3531,10 +3537,8 @@ namespace Dcat\Admin {
* @method Show\Field|Collection bank_name(string $label = null)
* @method Show\Field|Collection bank_card(string $label = null)
* @method Show\Field|Collection bank_addr(string $label = null)
* @method Show\Field|Collection admin_user_id(string $label = null)
* @method Show\Field|Collection status(string $label = null)
* @method Show\Field|Collection market_id(string $label = null)
* @method Show\Field|Collection is_del(string $label = null)
* @method Show\Field|Collection logo(string $label = null)
* @method Show\Field|Collection address(string $label = null)
* @method Show\Field|Collection introduce(string $label = null)
@ -3547,15 +3551,20 @@ namespace Dcat\Admin {
* @method Show\Field|Collection dn_poundage(string $label = null)
* @method Show\Field|Collection dm_poundage(string $label = null)
* @method Show\Field|Collection yd_poundage(string $label = null)
* @method Show\Field|Collection dada_number(string $label = null)
* @method Show\Field|Collection is_open_dada(string $label = null)
* @method Show\Field|Collection loudspeaker_imei(string $label = null)
* @method Show\Field|Collection dishes_menu_intro(string $label = null)
* @method Show\Field|Collection create_time(string $label = null)
* @method Show\Field|Collection tel(string $label = null)
* @method Show\Field|Collection is_rest(string $label = null)
* @method Show\Field|Collection award_money(string $label = null)
* @method Show\Field|Collection img(string $label = null)
* @method Show\Field|Collection start_at(string $label = null)
* @method Show\Field|Collection freight(string $label = null)
* @method Show\Field|Collection money(string $label = null)
* @method Show\Field|Collection mp_id(string $label = null)
* @method Show\Field|Collection is_pay(string $label = null)
* @method Show\Field|Collection mm_id(string $label = null)
* @method Show\Field|Collection admin_user_id(string $label = null)
* @method Show\Field|Collection activity(string $label = null)
* @method Show\Field|Collection forward(string $label = null)
* @method Show\Field|Collection repay(string $label = null)
@ -3744,7 +3753,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection area_name(string $label = null)
* @method Show\Field|Collection num(string $label = null)
* @method Show\Field|Collection store_id(string $label = null)
* @method Show\Field|Collection img(string $label = null)
* @method Show\Field|Collection stars(string $label = null)
* @method Show\Field|Collection time(string $label = null)
* @method Show\Field|Collection order_id(string $label = null)
@ -3882,6 +3890,8 @@ namespace Dcat\Admin {
* @method Show\Field|Collection waimai_pay_temp(string $label = null)
* @method Show\Field|Collection dangmian_pay_temp(string $label = null)
* @method Show\Field|Collection ziti_pay_temp(string $label = null)
* @method Show\Field|Collection dada_number(string $label = null)
* @method Show\Field|Collection is_open_dada(string $label = null)
* @method Show\Field|Collection deleted_at(string $label = null)
* @method Show\Field|Collection sender(string $label = null)
* @method Show\Field|Collection is_email(string $label = null)
@ -3932,7 +3942,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection ps_money(string $label = null)
* @method Show\Field|Collection mj_money(string $label = null)
* @method Show\Field|Collection xyh_money(string $label = null)
* @method Show\Field|Collection tel(string $label = null)
* @method Show\Field|Collection jj_note(string $label = null)
* @method Show\Field|Collection area(string $label = null)
* @method Show\Field|Collection del(string $label = null)
@ -3979,6 +3988,7 @@ namespace Dcat\Admin {
* @method Show\Field|Collection total_money(string $label = null)
* @method Show\Field|Collection dada_status(string $label = null)
* @method Show\Field|Collection print_num(string $label = null)
* @method Show\Field|Collection global_order_id(string $label = null)
* @method Show\Field|Collection mchid(string $label = null)
* @method Show\Field|Collection wxkey(string $label = null)
* @method Show\Field|Collection apiclient_cert(string $label = null)
@ -4022,9 +4032,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection sss_shop_token(string $label = null)
* @method Show\Field|Collection time4(string $label = null)
* @method Show\Field|Collection announcement(string $label = null)
* @method Show\Field|Collection is_rest(string $label = null)
* @method Show\Field|Collection start_at(string $label = null)
* @method Show\Field|Collection freight(string $label = null)
* @method Show\Field|Collection yyzz(string $label = null)
* @method Show\Field|Collection md_area(string $label = null)
* @method Show\Field|Collection md_type(string $label = null)
@ -4051,7 +4058,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection store_mchid(string $label = null)
* @method Show\Field|Collection cash_code(string $label = null)
* @method Show\Field|Collection store_wallet(string $label = null)
* @method Show\Field|Collection award_money(string $label = null)
* @method Show\Field|Collection mm_user_id(string $label = null)
* @method Show\Field|Collection add_time(string $label = null)
* @method Show\Field|Collection category(string $label = null)
@ -4200,6 +4206,7 @@ namespace Dcat\Admin {
* @method Show\Field|Collection order_money(string $label = null)
* @method Show\Field|Collection order_number(string $label = null)
* @method Show\Field|Collection hy_day(string $label = null)
* @method Show\Field|Collection unionid(string $label = null)
* @method Show\Field|Collection is_default(string $label = null)
* @method Show\Field|Collection yhk_num(string $label = null)
* @method Show\Field|Collection yh_info(string $label = null)
@ -4334,7 +4341,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection language(string $label = null)
* @method Show\Field|Collection headimgurl(string $label = null)
* @method Show\Field|Collection subscribe_time(string $label = null)
* @method Show\Field|Collection unionid(string $label = null)
* @method Show\Field|Collection groupid(string $label = null)
* @method Show\Field|Collection tagid_list(string $label = null)
* @method Show\Field|Collection subscribe_scene(string $label = null)
@ -4644,10 +4650,12 @@ namespace Dcat\Admin {
* @method Show\Field|Collection logo_url(string $label = null)
* @method Show\Field|Collection success(string $label = null)
* @method Show\Field|Collection error(string $label = null)
* @method Show\Field|Collection cs_id(string $label = null)
* @method Show\Field|Collection user_type(string $label = null)
* @method Show\Field|Collection money_type(string $label = null)
* @method Show\Field|Collection source_type(string $label = null)
* @method Show\Field|Collection comment(string $label = null)
* @method Show\Field|Collection is_del(string $label = null)
* @method Show\Field|Collection balance(string $label = null)
* @method Show\Field|Collection is_operated(string $label = null)
* @method Show\Field|Collection c_attitude(string $label = null)

15
resources/lang/zh-CN/lanzu-cs-info.php

@ -0,0 +1,15 @@
<?php
return [
'labels' => [
'LanzuCsInfo' => 'LanzuCsInfo',
],
'fields' => [
'name' => '名称',
'phone' => '电话',
'address' => '地址',
'admin_user_id' => '系统登陆帐号',
'status' => '状态 0/1/2 未审核/已审核',
],
'options' => [
],
];

14
resources/lang/zh-CN/lanzu-cs-withdraw.php

@ -0,0 +1,14 @@
<?php
return [
'labels' => [
'LanzuCsWithdraw' => 'LanzuCsWithdraw',
],
'fields' => [
'cs_id' => '关联的社区服务站id',
'money' => '提现金额',
'status' => '提现状态 0/1/-1 待审核/已同意/已拒绝',
'is_pay' => '是否支付到账 0/1 否/是',
],
'options' => [
],
];
Loading…
Cancel
Save