21 changed files with 55 additions and 141 deletions
-
14app/Admin/Common/StoreQRCode.php
-
9app/Admin/Controllers/v3/BannerController.php
-
4app/Admin/Controllers/v3/CategoryController.php
-
12app/Admin/Controllers/v3/GoodsController.php
-
20app/Admin/Controllers/v3/StoreController.php
-
4app/Admin/Repositories/v3/Banner.php
-
4app/Admin/Repositories/v3/Goods.php
-
4app/Admin/Repositories/v3/Store.php
-
12app/Admin/routes.php
-
2app/Models/v3/Banner.php
-
2app/Models/v3/Category.php
-
16app/Models/v3/CouponSetting.php
-
15app/Models/v3/CouponTie.php
-
7app/Models/v3/Goods.php
-
2app/Models/v3/GoodsBanners.php
-
46app/Models/v3/LanzuMmInfo.php
-
4app/Models/v3/Market.php
-
4app/Models/v3/Store.php
-
9app/Models/v3/User.php
-
2resources/lang/zh-CN/goods.php
-
4resources/lang/zh-CN/store.php
@ -1,16 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|||
use Illuminate\Database\Eloquent\SoftDeletes; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class CouponSetting extends Model |
|||
{ |
|||
use HasDateTimeFormatter; |
|||
// use SoftDeletes;
|
|||
|
|||
protected $table = 'ims_system_coupon_setting'; |
|||
|
|||
} |
|||
@ -1,15 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class CouponTie extends Model |
|||
{ |
|||
use HasDateTimeFormatter; |
|||
// protected $table = 'ims_system_coupon_user';
|
|||
protected $dateFormat = 'U'; |
|||
|
|||
} |
|||
@ -1,46 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class LanzuMmInfo extends Model |
|||
{ |
|||
use HasDateTimeFormatter; |
|||
protected $table = 'lanzu_mm_info'; |
|||
protected $dateFormat = 'U'; |
|||
|
|||
public function Withdraw() |
|||
{ |
|||
return $this->hasOne('\App\Models\LanzuMmWithdraw','mm_id','id'); |
|||
} |
|||
|
|||
/** |
|||
* 获取市场经理(只搜索状态为正常的经理) |
|||
* id为键,name为值 |
|||
*/ |
|||
public static function getMmInfoArray() |
|||
{ |
|||
$list = self::select('id','name') |
|||
->where('status',2) |
|||
->whereNull('deleted_at') |
|||
->get(); |
|||
$array = []; |
|||
if(count($list) > 0){ |
|||
foreach ($list as $key => $value){ |
|||
$array[$value->id] = $value->name; |
|||
} |
|||
} |
|||
return $array; |
|||
} |
|||
|
|||
/** |
|||
* 根据id获取单条记录 |
|||
*/ |
|||
public static function getMmInfo($id,$field = '*') |
|||
{ |
|||
return self::select($field)->find($id); |
|||
} |
|||
} |
|||
@ -1,12 +1,12 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
namespace App\Models\v3; |
|||
|
|||
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|||
use Illuminate\Database\Eloquent\SoftDeletes; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class ImsCjdcMarket extends Model |
|||
class Market extends Model |
|||
{ |
|||
use HasDateTimeFormatter; |
|||
use SoftDeletes; |
|||
@ -1,19 +1,14 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Models; |
|||
|
|||
|
|||
|
|||
namespace App\Models\v3; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class ImsCjdcUser extends Model |
|||
class User extends Model |
|||
{ |
|||
protected $table = 'lanzu_user'; |
|||
protected $dateFormat = 'U'; |
|||
|
|||
|
|||
/** |
|||
* 获取单个用户信息 |
|||
* @param int $id |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue