阶段性更新,没有实质性的功能

This commit is contained in:
2020-09-28 15:10:02 +08:00
parent 8c81c76aa0
commit 996ed300f5
119 changed files with 2745 additions and 2666 deletions

View File

@@ -47,7 +47,8 @@ class CensusController extends AdminController
{
$grid = new Grid(new User);
$grid->model()->whereHas('identity', function ($q) {
$grid->model()
->whereHas('identity', function ($q) {
$q->where('identity_id', 1);
});

View File

@@ -4,7 +4,7 @@ namespace App\Api\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use XuanChen\Coupon\Coupon;
use XuanChen\Coupon\UnionPay;
class UserController extends Controller
{
@@ -63,7 +63,7 @@ class UserController extends Controller
return $this->error($validator->errors()->first(), $log);
}
$res = Coupon::Grant($res['activityId'], $res['outletId'], $res['mobile']);
$res = UnionPay::Grant($res['activityId'], $res['outletId'], $res['mobile']);
if (is_string($res)) {
return $this->error($res, $log);
@@ -106,7 +106,7 @@ class UserController extends Controller
$redemptionCode = $res['redemptionCode'];
$outletId = $res['outletId'];
$res = Coupon::Query($redemptionCode, $outletId);
$res = UnionPay::Query($redemptionCode, $outletId);
if (is_string($res)) {
return $this->error($res, $log);
@@ -141,7 +141,7 @@ class UserController extends Controller
$redemptionCode = $res['redemptionCode'];
$outletId = $res['outletId'];
$res = Coupon::Destroy($redemptionCode, $outletId);
$res = UnionPay::Destroy($redemptionCode, $outletId);
if ($res !== true) {
return $this->error($res, $log);
@@ -188,7 +188,7 @@ class UserController extends Controller
$redemptionCode = trim($redemptionCode);
$outletId = trim($outletId);
$coupon = Coupon::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid);
$coupon = UnionPay::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid);
if (is_string($coupon)) {
return $this->error($coupon, $log);
}

View File

@@ -7,7 +7,7 @@ use SelfCoupon;
use App\Models\User;
use GuzzleHttp\Client;
use Illuminate\Http\Request;
use XuanChen\Coupon\Coupon;
use XuanChen\Coupon\UnionPay;
// use Wo;
@@ -179,7 +179,7 @@ class TestController
$total = $request->total;
$outletId = $request->outletId;
$orderid = $request->orderid ?? '';
$res = Coupon::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid);
$res = UnionPay::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid);
if (is_string($res)) {
return $this->error($res);

View File

@@ -16,14 +16,12 @@ class User extends Authenticatable
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $guarded = [];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [

131
config/unionpay.php Normal file
View File

@@ -0,0 +1,131 @@
<?php
return [
'check' => [
'self' => [
'private' => storage_path('cert/self/private_rsa.pem'),
'public' => storage_path('cert/self/public_rsa.pem'),
],
'unionpay' => [
'public' => storage_path('cert/unionpay/public_rsa.pem'),
],
],
'fields' => [
'query' => [
'in' => [
"msg_type" => "报文类型",
"msg_txn_code" => "交易代码",
"msg_crrltn_id" => "报文流水号",
"msg_flg" => "报文请求应答标志",
"msg_sender" => "报文发送方",
"msg_time" => "报文日期",
"msg_ver" => "报文版本号",
"req_serial_no" => "查询流水号",
"shop_no" => "门店号",
"term_no" => "受理终端号",
"service_code" => "受理方式",
"voucher_no" => "受理凭证号",
"mkt_code" => "聚合营销码",
"mkt_mode" => "聚合营销类型",
"embedded_mchnt_no" => "发起渠道商户号",
"currency_code" => "货币代码",
"amount" => "消费金额",
"avl_amt" => "可优惠金额",
"term_sp_chnl_no" => "终端指定SP渠道号",
"func_code" => "功能码",
"times" => "次数",
"pay_mode" => "支付方式",
//用户附加信息
"user_ext_info" => [
"mobile_no" => "手机号",
"user_code" => "用户号",
"user_code_type" => "用户号类型",
"dev_id" => "设备id",
],
"sign" => " 签名域",
],
'out' => [
"msg_type" => "报文类型",
"msg_txn_code" => "交易代码",
"msg_crrltn_id" => "报文流水号",
"msg_flg" => "报文请求应答标志",
"msg_sender" => "报文发送方",
"msg_time" => "报文日期",
"msg_sys_sn" => "平台流水号",
"msg_rsp_code" => "响应码",
"msg_rsp_desc" => "响应码描述",
"discount" => "折扣金额",
"actual_amt" => "折后应收金额",
"pos_display" => "POS显示",
"pos_receipt" => "POS小票",
"pos_ad" => "POS广告",
"pos_mkt_ad" => "Pos_营销联盟广告",
"sign" => "签名域",
]
],
'freezecoupon' => [
'in' => [
"msg_type" => "报文类型",
"msg_txn_code" => "交易代码",
"msg_crrltn_id" => "消息关联号",
"msg_flg" => "报文请求应答标志",
"msg_sender" => "报文发送方",
"msg_time" => "报文日期",
"msg_sys_sn" => "平台流水号",
"msg_ver" => "报文版本号",
"shop_no" => "门店号",
"term_no" => "终端号",
"req_serial_no" => "销券流水号",
"orig_req_serial_no" => "原查询流水号",
"enc_card_no" => "加密卡号",
"part_card_no" => "部分卡号",
"acq_term_sn" => "受理终端流水号",
"refer_no" => "检索参考号",
"sett_date" => "清算日期",
"txn_date" => "交易日期",
"txn_time" => "交易时间",
"orig_amt" => "原始金额",
"discount_amt" => "优惠的金额",
"pay_amt" => "支付金额",
"pay_mode" => "支付方式",
"order_no" => "订单号",
"trans_crrltn_no" => "交易关联流水号",
"equity_no" => "权益号",
"card_no" => "全卡号",
"sign" => "签名数据",
],
'out' => [
"msg_type" => "报文类型",
"msg_txn_code" => "交易代码",
"msg_crrltn_id" => "消息关联号",
"msg_flg" => "报文请求应答标志",
"msg_sender" => "报文发送方",
"msg_time" => "报文日期",
"msg_sys_sn" => "平台流水号",
"msg_ver" => "报文版本号",
"msg_rsp_code" => "响应码",
"msg_rsp_desc" => "响应码描述",
"orig_amt" => "原始金额",
"discount_amt" => "折扣金额",
"pay_amt" => "支付金额",
"serv_chg" => "服务费",
"commission" => "佣金",
"ad" => "广告",
"pos_receipt" => "POS优惠",
"coupon_no" => "凭证号",
"coupon_type" => "凭证类型",
"sp_biz_code" => "SP统计码",
"charge_code" => "计费码",
"pos_event_title" => "SP活动主题",
"sp_contact" => "SP联系电话",
"sp_name" => "SP名称",
"event_no" => "活动号",
"td_code" => "二维码",
"memo" => "附言",
"mkt_sp_chnl_no" => "营销渠道号",
"point_amt" => "积分抵扣金额",
"sign" => "签名数据",
]
],
]
];

View File

@@ -6,7 +6,7 @@ return [
'ysd' => [
// 'pattern' => '/^YSD\d{12}/',
'pattern' => '/^YSD/',
'model' => \XuanChen\Coupon\Action\YsdAction::class,
'model' => \XuanChen\Coupon\Action\UnionPayAction::class,
],
'pingan' => [
'pattern' => '/^\d{12}$/',

View File

@@ -9,7 +9,7 @@ return [
],
'ysd' => [
'pattern' => '/^YSD/',
'model' => \XuanChen\Coupon\Action\YsdAction::class,
'model' => \XuanChen\Coupon\Action\UnionPayAction::class,
],
],
];

View File

@@ -0,0 +1,27 @@
{
"name": "xuanchen/coupon",
"description": "卡券相关",
"license": "MIT",
"authors": [
{
"name": "玄尘",
"email": "122383162@qq.com"
}
],
"require": {
"php": ">=7.1.3",
"laravel/framework": "*"
},
"autoload": {
"psr-0": {
"XuanChen\\Coupon": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"XuanChen\\Coupon\\ServiceProvider"
]
}
}
}

View File

@@ -0,0 +1,15 @@
<?php
return [
'coupon_model' => \App\Models\Coupon::class,
'rules' => [
'pingan' => [
'pattern' => '/^\d{12}$/',
'model' => \XuanChen\Coupon\Action\PinganAction::class,
],
'ysd' => [
'pattern' => '/^YSD/',
'model' => \XuanChen\Coupon\Action\UnionPayAction::class,
],
],
];

View File

@@ -0,0 +1,197 @@
<?php
namespace XuanChen\Coupon\Action;
use App\Models\Coupon;
use App\Models\Log as LogModel;
class Init
{
//渠道
public $user;
//卡券编号
public $redemptionCode;
//订单金额
public $total;
//网点编号
public $outletId;
//活动id
public $activityId;
//手机号
public $mobile;
//核销的卡券 创建的核销记录
public $coupon;
//查询返回卡券信息
public $query_coupon;
//订单id
public $orderid;
//查询到的卡券规则和商品id 只有平安券才有
public $queryData;
//设置渠道
public function setUser($user)
{
$this->user = $user;
return $this;
}
//设置渠道
public function setOrderId($orderid)
{
$this->orderid = $orderid;
return $this;
}
//设置核销码
public function setCode($redemptionCode)
{
$this->redemptionCode = $redemptionCode;
return $this;
}
//设置订单总额
public function setTotal($total)
{
$this->total = $total;
return $this;
}
//设置网点id
public function setOutletId($outletId)
{
$this->outletId = $outletId;
return $this;
}
//设置活动id
public function setActivityId($activityId)
{
$this->activityId = $activityId;
return $this;
}
//设置手机号
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Notes: 插入日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $url
* @param $method
* @param $params
* @param string $type
* @return mixed
*/
public function createLog($url, $method, $params, $type = 'pingan')
{
$data = [
'path' => $url,
'method' => $method,
'type' => $type,
'in_source' => $params,
];
$info = LogModel::create($data);
return $info;
}
/**
* Notes: 更新日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $log
* @param $params
*/
public static function updateLog($log, $params)
{
$log->out_source = $params;
$log->save();
}
//统一门店 相同金额 3分钟之内看作是一笔订单
public function CheckCount()
{
if ($this->queryData) {
if (isset($this->queryData['thirdPartyGoodsId']) && $this->queryData['thirdPartyGoodsId'] == 'YSD-full0-0') {
return true;
}
}
if ($this->orderid) {
$check_count = Coupon::where('orderid', $this->orderid)
->where('outletId', $this->outletId)
->where('total', $this->total)
->where('status', 2)
->where('created_at', '>=', now()->subMinutes(3)->format('Y-m-d H:i:s'))
->count();
} else {
$check_count = Coupon::where('outletId', $this->outletId)
->where('total', $this->total)
->where('status', 2)
->where('created_at', '>=', now()->subMinutes(3)->format('Y-m-d H:i:s'))
->count();
}
$count = floor($this->total / 100);
if ($check_count > 0) {
// if ($this->total < 100) {
// return '核销失败订单金额少于100只能核销一张优惠券。';
// }
if ($check_count >= $count) {
return "核销失败,此订单您只能使用 {$count} 张优惠券";
}
}
return true;
}
/**
* Notes: 校验是否已经核销过
* @Author: 玄尘
* @Date : 2020/8/8 13:43
*/
public function HasCheck()
{
$info = Coupon::where('redemptionCode', $this->redemptionCode)
->where('outletId', $this->outletId)
->where('total', $this->total)
->where('status', 2)
->first();
if ($info) {
return '核销失败,此优惠券已被使用';
}
return false;
}
}

View File

@@ -0,0 +1,55 @@
<?php
namespace XuanChen\Coupon\Action;
use XuanChen\Coupon\Action\pingan\Query;
use XuanChen\Coupon\Action\pingan\Verification;
use XuanChen\Coupon\Contracts\CouponContracts;
class PinganAction extends Init implements CouponContracts
{
/**
* Notes: 核销执行入口
* @Author: 玄尘
* @Date : 2020/6/29 14:49
* @return mixed
*/
public function start()
{
return (new Verification)->setCode($this->redemptionCode)
->setUser($this->user)
->setOutletId($this->outletId)
->setTotal($this->total)
->setOrderId($this->orderid)
->start();
}
/**
* Notes: 查询卡券详情
* @Author: 玄尘
* @Date : 2020/6/29 15:15
* @return mixed
*/
public function detail()
{
$info = (new Query)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
return $info;
}
//发券
function grant()
{
return '没这个接口';
}
//作废
function destroy()
{
return '没这个接口';
}
}

View File

@@ -0,0 +1,73 @@
<?php
namespace XuanChen\Coupon\Action;
use XuanChen\Coupon\Action\sinopec\ZhyCreate;
use XuanChen\Coupon\Contracts\CouponContracts;
/**
* Class SinopecAction 中石化控制器
* @Author: 玄尘
* @Date: 2020/9/23 15:14
* @package XuanChen\Coupon\Action
*/
class SinopecAction extends Init implements CouponContracts
{
/**
* Notes: 创建营销活动
* @Author: 玄尘
* @Date: 2020/9/23 16:01
* @param array $data
*/
public function create(array $data)
{
$action = new ZhyCreate();
$action->data = $data;
return $action->start();
}
/**
* Notes: 发券接口
* @Author: 玄尘
* @Date: 2020/9/23 15:58
*/
function grant()
{
// TODO: Implement grant() method.
}
/**
* Notes: 查询接口
* @Author: 玄尘
* @Date: 2020/9/23 15:58
* @return mixed|void
*/
function detail()
{
// TODO: Implement detail() method.
}
/**
* Notes: 作废接口
* @Author: 玄尘
* @Date: 2020/9/23 15:59
*/
function destroy()
{
// TODO: Implement destroy() method.
}
/**
* Notes: 核销接口
* @Author: 玄尘
* @Date: 2020/9/23 16:00
* @return mixed|void
*/
function start()
{
// TODO: Implement start() method.
}
}

View File

@@ -0,0 +1,91 @@
<?php
namespace XuanChen\Coupon\Action;
use XuanChen\Coupon\Action\ysd\YsdDestroy;
use XuanChen\Coupon\Action\ysd\YsdGrant;
use XuanChen\Coupon\Action\ysd\YsdQuery;
use XuanChen\Coupon\Action\ysd\YsdVerification;
use XuanChen\Coupon\Contracts\CouponContracts;
/**
* Class YsdAction 自有卡券核销
* @Author : 玄尘
* @Date : 2020/7/21 9:41
* @package XuanChen\Coupon\Action
*/
class YsdAction extends Init implements CouponContracts
{
/**
* Notes: 发券
* @Author: 玄尘
* @Date : 2020/7/21 10:08
* @return mixed
*/
public function grant()
{
return (new YsdGrant)->setActivityId($this->activityId)
->setOutletId($this->outletId)
->setMobile($this->mobile)
->start();
}
/**
* Notes: 查询卡券详情
* @Author: 玄尘
* @Date : 2020/6/29 15:15
* @return mixed
*/
public function detail()
{
$query_coupon = (new YsdQuery)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
if (!is_string($query_coupon)) {
return [
'name' => $query_coupon->activity->title,
'code' => $query_coupon->code,
'full' => $query_coupon->full,
'price' => $query_coupon->price,
'status' => $query_coupon->status,
'used_at' => (string)$query_coupon->used_at,
'startTime' => (string)$query_coupon->start_at,
'endTime' => (string)$query_coupon->end_at,
];
}
return $query_coupon;
}
/**
* Notes: 作废
* @Author: 玄尘
* @Date : 2020/7/21 11:32
*/
public function destroy()
{
return $res = (new YsdDestroy)->setCode($this->redemptionCode)
->setOutletId($this->outletId)
->start();
}
/**
* Notes: 核销执行入口
* @Author: 玄尘
* @Date : 2020/6/29 14:49
* @return mixed
*/
public function start()
{
return $res = (new YsdVerification)->setCode($this->redemptionCode)
->setUser($this->user)
->setOutletId($this->outletId)
->setTotal($this->total)
->setOrderId($this->orderid)
->start();
}
}

View File

@@ -0,0 +1,205 @@
<?php
namespace XuanChen\Coupon\Action\pingan;
use App\Models\PinganToken;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use XuanChen\Coupon\Action\Init;
/**
* 超市购物券
*/
class PingAnInit extends Init
{
protected $this_type;
protected $baseUri;
protected $tokenUri;
protected $client_id;
protected $grant_type;
protected $client_secret;
protected $access_token;
protected $userName;
protected $error;
protected $aes_code; //aes 密钥
protected $log;//日志
public function __construct()
{
$this->this_type = config('pingan.this_type');
$pingan = config('pingan.' . $this->this_type);
$this->baseUri = $pingan['Uri'];
$this->tokenUri = $pingan['tokenUri'];
$this->client_id = $pingan['client_id'];
$this->grant_type = $pingan['grant_type'];
$this->userName = $pingan['userName'];
$this->client_secret = $pingan['client_secret'];
$this->aes_code = $pingan['AES_CODE'];
}
/**
* 获取access_token
* @return void [type] [description]
*/
public function getToken()
{
//从数据库里找token
$token = PinganToken::where('type', $this->this_type)->orderBy('id', 'desc')->first();
if ($token) {
$access_token = $token->access_token;
$expires_in = $token->expires_in;
$get_token_time = $token->get_token_time;
$diffMinutes = $get_token_time->diffInMinutes(now(), false);
if ($diffMinutes < $expires_in) {
$this->access_token = $access_token;
} else {
$this->getAjaxToken();
}
} else {
$this->getAjaxToken();
}
}
/**
* 获取毫秒级别的时间戳
*/
public function getMsecTime()
{
[$msec, $sec] = explode(' ', microtime());
$msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
$msectime = explode('.', $msectime);
return $msectime[0];
}
/**
* 请求平台 access_token
* @return void [type] [description]
*/
public function getAjaxToken()
{
$params = [
'client_id' => $this->client_id,
'grant_type' => $this->grant_type,
'client_secret' => $this->client_secret,
];
try {
$log = $this->createLog($this->tokenUri, 'POST', $params, 'pingan');
$client = new Client();
$response = $client->request('POST', $this->tokenUri, [
'form_params' => $params,
]);
$body = $response->getBody();
$content = $body->getContents();
$result = json_decode($content, true);
$this->updateLog($log, $result); //更新日志
if ($result['ret'] > 0) {
$this->error = $result['msg'];
} else {
$data = $result['data'];
PinganToken::create([
'type' => $this->this_type,
'access_token' => $data['access_token'],
'expires_in' => $data['expires_in'],
'get_token_time' => now(),
]);
$this->access_token = $data['access_token'];
$this->error = '';
}
} catch (RequestException $e) {
$this->error = $e->getMessage();
$this->updateLog($log, [$this->error]); //更新日志
}
}
/**
* 通用获取数据接口
* @param [type] $url 请求地址
* @param array $query 传递参数
* @param array $json 需要传的json数据
* @param string $method 方式
* @return array|mixed [type] [description]
*/
public function getPingAnData($url, $query = [], $json = [], $method = 'POST')
{
$this->getToken();
if ($this->error) {
return $this->error;
}
$postData = [
'query' => array_merge([
'access_token' => $this->access_token,
'request_id' => $this->getMsecTime(),
'userName' => $this->userName,
], $query),
'json' => $json,
'headers' => [
'Content-Type' => 'application/json;charset=utf-8',
'accept' => 'application/json;charset=utf-8',
],
];
$log = $this->createLog($url, $method, $postData, 'pingan'); //日志
try {
$client = new Client();
$response = $client->request($method, $url, $postData);
$body = $response->getBody();
$content = $body->getContents();
$result = json_decode($content, true);
if ($result['ret'] > 0) {
$retData = $result['msg'];
} else {
$retData = $result['data'];
}
$this->updateLog($log, $retData);//更新日志
return $retData;
} catch (RequestException $e) {
$this->updateLog($log, [$e->getMessage()]);//更新日志
return ['ret' => '99999', $e->getMessage()];
}
}
//加密
public function encrypt($str)
{
if (is_array($str)) {
$str = json_encode($str);
}
$data = openssl_encrypt($str, 'aes-128-ecb', $this->aes_code, OPENSSL_RAW_DATA);
return base64_encode($data);
}
//解密
public function decrypt($str)
{
$encrypted = base64_decode($str);
return openssl_decrypt($encrypted, 'aes-128-ecb', $this->aes_code, OPENSSL_RAW_DATA);
}
}

View File

@@ -0,0 +1,45 @@
<?php
namespace XuanChen\Coupon\Action\pingan;
use App\Models\User;
class Query extends PingAnInit
{
public function start()
{
try {
//查询网点是否存在
$outlet = User::where('outlet_id', $this->outletId)->first();
if (!$outlet) {
throw new \Exception('网点编号错误,未查询到网点信息');
}
$url = $this->baseUri . 'partner/v2/coupondetail';
$params = [
'redemptionCode' => $this->redemptionCode,
'outletNo' => $outlet->PaOutletId,
'thirdOutletNo' => $outlet->outlet_id,
];
$res = $this->getPingAnData($url, $params);
if (!is_array($res)) {
throw new \Exception($res);
}
if ($res['code'] != 200) {
throw new \Exception($res['message']);
}
return collect($res['data']);
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,298 @@
<?php
namespace XuanChen\Coupon\Action\pingan;
use App\Models\Coupon;
use App\Models\User;
use Carbon\Carbon;
class Verification extends PingAnInit
{
public $ticket;
public function start()
{
//检查是否已经核销过
$res = $this->HasCheck();
if ($res !== false) {
return $res;
}
//查询卡券信息
$this->query_coupon = (new Query)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
if (is_string($this->query_coupon)) {
return $this->query_coupon;
}
//校验卡券
$ticket = $this->checkCoupon();
if (!is_array($ticket)) {
return $ticket;
}
//检查可核销次数
$ret = $this->CheckCount();
if ($ret !== true) {
return $ret;
}
//增加核销记录
$coupon = $this->AddCoupon();
if (is_string($coupon)) {
return $coupon;
}
try {
$params = [
'couponNo' => $coupon->redemptionCode,
'partnerOrderId' => date('ymdHis') . sprintf("%0" . strlen(999999) . "d", mt_rand(0, 999999)),
'outletId' => $coupon->PaOutletId,
'productId' => $coupon->productId,
'timestamp' => $this->getMsecTime(),
];
$url = $this->baseUri . 'partner/redemption';
$str = $this->encrypt($params);
$res = $this->getPingAnData($url, [], ['data' => $str]);
if (!is_array($res)) {
$coupon->remark = $res;
$coupon->status = 3;
$coupon->save();
throw new \Exception($res);
}
if ($res['code'] != 200) {
$coupon->remark = $res['code'] . '--' . $res['message'];
$coupon->status = 3;
$coupon->save();
throw new \Exception($res['message']);
}
$data = $res['data'];
$coupon->remark = $data['message'];
$coupon->status = ($data['status'] == 1) ? 2 : 3;
$coupon->save();
//返回的数据
$resdata = [
'price' => $coupon->price,
'name' => $coupon->couponName,
'total' => $coupon->total,
];
//核销成功 执行分润
$coupon->profit();
return $resdata;
} catch (Exception $e) {
$coupon->status = 3;
$coupon->remark = '核销失败 ' . $e->getMessage();
$coupon->save();
return $coupon->remark;
}
}
/**
* Notes: 如可核销记录
* @Author: 玄尘
* @Date : 2020/7/21 15:03
* @return string
*/
public function AddCoupon()
{
try {
$couponData = [
'user_id' => $this->user->id,
'type' => Coupon::TYPE_PINGAN,
'outletId' => $this->outletId,
'orderid' => $this->orderid,
'PaOutletId' => $this->queryData['PaOutletId'],
'redemptionCode' => $this->redemptionCode,
'productId' => $this->queryData['productId'],
'thirdPartyGoodsId' => $this->queryData['thirdPartyGoodsId'],
'couponName' => $this->query_coupon['couponName'],
'price' => $this->ticket['price'],
'total' => $this->total,
'profit' => $this->ticket['profit'],
'status' => 0,
'startTime' => $this->query_coupon['startTime'],
'endTime' => $this->query_coupon['endTime'],
];
return $coupon = Coupon::create($couponData);
} catch (Exception $e) {
return $e->getMessage();
}
}
/**
* Notes: 检查卡券信息
* @Author: 玄尘
* @Date : 2020/6/29 16:40
* @return string
*/
public function checkCoupon()
{
//检查卡券是否已被核销
if ($this->query_coupon['status'] > 0) {
if (isset(config('pingan.coupon_status')[$this->query_coupon['status']])) {
return '核销失败,平安券' . config('pingan.coupon_status')[$this->query_coupon['status']];
}
return '核销失败,平安券不可用。';
}
$startTime = Carbon::parse($this->query_coupon['startTime']);
$endTime = Carbon::parse($this->query_coupon['endTime']);
$now = now();
if ($startTime->gt($now)) {
return '核销失败,平安券未开始使用。';
}
if ($now->gt($endTime)) {
return '核销失败,平安券已过期。';
}
//查找适配的商品id 和 网点id
$pinganData = $this->getPinganProduct();
if (is_string($pinganData)) {
return $pinganData;
}
//获取相关优惠信息
return $this->checkCode();
}
/**
* 校验平安券编号
* @return array|string [type] [description]
*/
public function checkCode()
{
$code = $this->user->code->where('code', $this->queryData['thirdPartyGoodsId'])->first();
if (!$code) {
return "核销失败,未找到此项平安券规则,请联系管理人员检查渠道配置。";
}
$ticket = explode('-', $this->queryData['thirdPartyGoodsId']);
if (!is_array($ticket) || count($ticket) != 3) {
return "核销失败,平安券规则格式不正确。";
}
$full = $ticket[1]; //full100
$price = $ticket[2];
preg_match('/\d+/', $full, $result);
if (empty($result) || !is_array($result)) {
return "核销失败,平安券规则格式不正确。";
}
if (!is_numeric($this->total)) {
return "核销失败,订单金额必须是数字";
}
if ($result[0] > $this->total) {
return '核销失败,订单金额不足,平安券不可使用。';
}
$this->ticket = [
'total' => $result[0],
'price' => $price,
'profit' => $code->profit,
];
return $this->ticket;
}
/**
* 查找平安商品id
* @author 玄尘 2020-04-04
* @return array|string [type] [description]
*/
public function getPinganProduct()
{
//查询网点是否存在
$outlet = User::where('outlet_id', $this->outletId)->first();
if (!$outlet) {
return '核销失败,网点编号错误,未查询到网点信息';
}
$PaOutletId = $outlet->PaOutletId;
$outlet_id = $outlet->outlet_id;
$profitOfferItemVersion = $this->query_coupon['profitOfferItemVersion'];
if (!$PaOutletId && $profitOfferItemVersion != 1) {
return '核销失败参数错误渠道信息缺少平安网点id';
}
$productItemList = $this->query_coupon['productItemList'];
if (!is_array($productItemList) || !is_array($productItemList[0])) {
return '核销失败,平安券数据有误,可能是未配置网点。';
}
//循环查找
$first = '';
foreach ($productItemList as $key => $item) {
$productId = $item['productId'];
$thirdPartyGoodsId = $item['thirdPartyGoodsId'];
$outletList = $item['outletList'];
if (!is_array($outletList) || !is_array($outletList[0])) {
return '核销失败,网点信息有误!请检查平安券配置信息。';
break;
}
$outletList = collect($outletList);
//判断是新版还是旧版
if ($profitOfferItemVersion) {
//新版通过第三方查询
$first = $outletList->firstWhere('thirdOutletNo', $outlet_id);
if ($first) {
break;
}
} else {
//旧版通过平安网点查询
$first = $outletList->firstWhere('outletNo', $PaOutletId);
if ($first) {
break;
}
}
}
if (!$first) {
return '核销失败,未找到可用网点信息。';
}
if (!$thirdPartyGoodsId) {
return '核销失败,平安券编号规则有误。';
}
if (!$productId) {
return '核销失败未查询到平安券商品id。';
}
return $this->queryData = [
'thirdPartyGoodsId' => $thirdPartyGoodsId,
'productId' => $productId,
'PaOutletId' => $first['outletNo'],
];
}
}

View File

@@ -0,0 +1,81 @@
<?php
namespace XuanChen\Coupon\Action\sinopec;
use XuanChen\Coupon\Contracts\CheckCouponContracts;
class ZhyCreate implements CheckCouponContracts
{
public $data;
public function start()
{
try {
[
"cooperativeMerchant" => "",
"eletronAndRule" => [
[
"entryMethod" => "01",
"marketCode" => "20191213154203514",
"marketRuleNumber" => "001",
"perVoucherNumber" => "1",
"planVoucherNumber" => "10",
"queryCreateTime" => "2019-11-11 18=> 39=> 49",
"similarStack" => "Y",
"voucherEndTime" => "2019-12-15",
"voucher_ruleCode" => "$01-VC-1573468710381900",
"voucherRuleName" => "ceshi2",
"voucherSource" => "S01",
"voucherStartTime" => "2019-12-13",
"voucherStartTime_type" => "VOUCHER_START_TIME_TYPE_ABSOLUTE_EFFECTIVE_TIME"
]
],
"limitFrequency" => "",
"mabIsRefund" => "",
"marketCode" => "20191213154203514",
"marketExEndTime" => "2019-12-15 00=> 00=> 00",
"marketExStartTime" => "2019-12-13 00=> 00=> 00",
"marketHierarchy" => "3311",
"marketName" => "行为推送活动-3",
"marketProvince" => "51",
"marketReleaseSys" => "VOUCHER_PUBLISH_TYPE_APPLET",
"marketStatus" => "MARKET_ACTIVITY_STATE_TAKE_EFFECT",
"promotionCalculation" => "PROMOTION_TYPE_MEMBER_BEHAVIOR",
"rule" => [
[
"cashValue" => "100",
"channel" => "C01,C02,C03,C05",
"fullType" => "",
"marketCode" => "20191213154203514",
"perVoucherNumber" => "1",
"planVoucherNumber" => "10",
"ruleCode" => "$01-VC-1573468710381900",
"ruleDetail" => "123123",
"ruleName" => "ceshi2",
"voucherType" => "C01"
]
],
"tradLimit" => [
[
"endValue" => "",
"fixed" => "",
"marketCode" => "20191213154203514",
"marketRuleName" => "001",
"marketRuleNumber" => "001",
"memLevel" => "",
"operator" => "",
"startValue" => "",
"tradingUnit" => "",
"transactionType" => ""
]
]
];
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,81 @@
<?php
namespace XuanChen\Coupon\Action\sinopec;
use XuanChen\Coupon\Contracts\CheckCouponContracts;
class ZhyQuery implements CheckCouponContracts
{
public $data;
public function start()
{
try {
[
"cooperativeMerchant" => "",
"eletronAndRule" => [
[
"entryMethod" => "01",
"marketCode" => "20191213154203514",
"marketRuleNumber" => "001",
"perVoucherNumber" => "1",
"planVoucherNumber" => "10",
"queryCreateTime" => "2019-11-11 18=> 39=> 49",
"similarStack" => "Y",
"voucherEndTime" => "2019-12-15",
"voucher_ruleCode" => "$01-VC-1573468710381900",
"voucherRuleName" => "ceshi2",
"voucherSource" => "S01",
"voucherStartTime" => "2019-12-13",
"voucherStartTime_type" => "VOUCHER_START_TIME_TYPE_ABSOLUTE_EFFECTIVE_TIME"
]
],
"limitFrequency" => "",
"mabIsRefund" => "",
"marketCode" => "20191213154203514",
"marketExEndTime" => "2019-12-15 00=> 00=> 00",
"marketExStartTime" => "2019-12-13 00=> 00=> 00",
"marketHierarchy" => "3311",
"marketName" => "行为推送活动-3",
"marketProvince" => "51",
"marketReleaseSys" => "VOUCHER_PUBLISH_TYPE_APPLET",
"marketStatus" => "MARKET_ACTIVITY_STATE_TAKE_EFFECT",
"promotionCalculation" => "PROMOTION_TYPE_MEMBER_BEHAVIOR",
"rule" => [
[
"cashValue" => "100",
"channel" => "C01,C02,C03,C05",
"fullType" => "",
"marketCode" => "20191213154203514",
"perVoucherNumber" => "1",
"planVoucherNumber" => "10",
"ruleCode" => "$01-VC-1573468710381900",
"ruleDetail" => "123123",
"ruleName" => "ceshi2",
"voucherType" => "C01"
]
],
"tradLimit" => [
[
"endValue" => "",
"fixed" => "",
"marketCode" => "20191213154203514",
"marketRuleName" => "001",
"marketRuleNumber" => "001",
"memLevel" => "",
"operator" => "",
"startValue" => "",
"tradingUnit" => "",
"transactionType" => ""
]
]
];
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,61 @@
<?php
namespace XuanChen\Coupon\Action\ysd;
use App\Events\ConponCallback;
use App\Models\ActivityCoupon;
use App\Models\User;
use XuanChen\Coupon\Action\Init;
class YsdDestroy extends Init
{
public function start()
{
if ($this->redemptionCode) {
try {
if (!$this->outletId) {
throw new \Exception('缺少网点id');
}
$info = ActivityCoupon::where('code', $this->redemptionCode)->first();
if (!$info) {
throw new \Exception('未查询到卡券信息');
}
$outlet = User::where('outlet_id', $this->outletId)->first();
if (empty($outlet)) {
return '作废失败,未查询到此网点信息。';
}
$grants = $info->activity->grants()->pluck('user_id');
if ($grants->isEmpty()) {
return '作废失败,此活动还没有配置可发券渠道,请联系相关人员进行配置。';
}
if (!in_array($outlet->parent_id, $grants->toArray())) {
return '作废失败,您没有权限作废此优惠券。';
}
if (!$info->canDestroy()) {
throw new \Exception('作废失败,' . $info->status_text . '不能操作');
}
$info->status = ActivityCoupon::STATUS_CLOSE;
$info->save();
event(new ConponCallback($info));
return true;
} catch (\Exception $e) {
return $e->getMessage();
}
} else {
return '未获取到券码。';
}
}
}

View File

@@ -0,0 +1,59 @@
<?php
namespace XuanChen\Coupon\Action\ysd;
use App\Models\Activity;
use App\Models\User;
use XuanChen\Coupon\Action\Init;
class YsdGrant extends Init
{
public function start()
{
try {
$activity = Activity::where('code', $this->activityId)->first();
if (!$activity) {
return '发券失败,没有找到这个活动。';
}
if (!$activity->status) {
return '发券失败,活动已经关闭。';
}
$outlet = User::where('outlet_id', $this->outletId)->first();
if (!$outlet) {
return '发券失败,未查询到此网点信息。';
}
$grants = $activity->grants()->pluck('user_id');
if ($grants->isEmpty()) {
return '发券失败,此活动还没有配置可发券渠道,请联系相关人员进行配置。';
}
if (!in_array($outlet->parent_id, $grants->toArray())) {
return '发券失败,您没有权限发此类优惠券。';
}
$coupon = $activity->grant($this->mobile, $this->outletId);
if (!is_string($coupon)) {
return [
'name' => $activity->title,
'code' => $coupon->code,
'full' => $coupon->full,
'price' => $coupon->price,
'startTime' => $coupon->start_at->format('Y-m-d H:i:s'),
'endTime' => $coupon->end_at->format('Y-m-d H:i:s'),
];
}
return $coupon;
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,51 @@
<?php
namespace XuanChen\Coupon\Action\ysd;
use App\Models\ActivityCoupon;
use App\Models\User;
use XuanChen\Coupon\Action\Init;
class YsdQuery extends Init
{
public function start()
{
try {
$info = User::where('outlet_id', $this->outletId)->first();
if (!$info) {
throw new \Exception('网点编号错误,未查询到网点信息');
}
$coupon = ActivityCoupon::where('code', $this->redemptionCode)->first();
if (!$coupon) {
throw new \Exception('卡券编号错误,未查询到卡券信息');
}
$activity = $coupon->activity;
if (!$activity) {
throw new \Exception('操作失败,未查到活动信息');
}
//获取所有可核销渠道
$verifications = $activity->verifications()->pluck('user_id');
if ($verifications->isEmpty()) {
throw new \Exception('操作失败,此活动还没有配置可核券渠道,请联系相关人员进行配置。');
}
if (!in_array($info->parent_id, $verifications->toArray())) {
throw new \Exception('操作失败,您没有权限查询此卡券信息。');
}
return $coupon;
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,195 @@
<?php
namespace XuanChen\Coupon\Action\ysd;
use App\Events\ConponCallback;
use App\Models\ActivityCoupon;
use App\Models\Coupon;
use Illuminate\Support\Facades\DB;
use XuanChen\Coupon\Action\Init;
class YsdVerification extends Init
{
public $ticket;
/**
* Notes: 核销具体流程
* @Author: 玄尘
* @Date : 2020/7/29 13:12
* @return array|string
*/
public function start()
{
//检查是否已经核销过
$res = $this->HasCheck();
if ($res !== false) {
return $res;
}
//查询卡券信息 返回model 返回string 说明报错
$this->query_coupon = (new YsdQuery)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
if (is_string($this->query_coupon)) {
return $this->query_coupon;
}
//检查可核销次数100元为1次。
if ($this->query_coupon->activity && $this->query_coupon->activity->need_check) {
$ret = $this->CheckCount();
if ($ret !== true) {
return $ret;
}
}
//校验卡券
$ticket = $this->checkCoupon();
if (!is_array($ticket)) {
return $ticket;
}
//增加核销记录
$coupon = $this->AddCoupon();
if (is_string($coupon)) {
return $coupon;
}
DB::beginTransaction();
try {
$this->query_coupon->status = ActivityCoupon::STATUS_USED;
$this->query_coupon->used_at = now();
$this->query_coupon->save();
$this->coupon->status = 2;
$this->coupon->remark = '核销成功';
$this->coupon->save();
//返回的数据
$resdata = [
'name' => $this->coupon->couponName,
'total' => $this->coupon->total,
'price' => $this->coupon->price,
];
//核销成功 执行分润
$this->coupon->profit();
DB::commit();
event(new ConponCallback($this->query_coupon));
return $resdata;
} catch (Exception $e) {
DB::rollback();
$this->coupon->status = 3;
$this->coupon->remark = '核销失败 ' . $e->getMessage();
$this->coupon->save();
return $this->coupon->remark;
}
}
/**
* Notes: 检查卡券信息
* @Author: 玄尘
* @Date : 2020/6/29 16:40
* @return string
*/
public function checkCoupon()
{
if (!$this->query_coupon->canRedemption()) {
return '核销失败,优惠券不可核销';
}
$now = now();
if ($this->query_coupon->start_at->gt($now)) {
return '核销失败,卡券未到可用时间。请在' . $this->query_coupon->start_at->format('Y-m-d H:i:s') . '后使用';
}
if ($now->gt($this->query_coupon->end_at)) {
return '核销失败,卡券已过期。';
}
$rule_code = $this->query_coupon->activity->rule->code;
$code = $this->user->code->where('code', $rule_code)->first();
if (!$code) {
return "核销失败,您没有权限使用此卡券优惠活动。";
}
$ticket = explode('-', $rule_code);
if (!is_array($ticket) || count($ticket) != 3) {
return "核销失败,卡券规则格式不正确";
}
$full = $ticket[1]; //full100
$price = $ticket[2];
// preg_match('/(\d{3}(\.\d+)?)/is', $full, $match);
preg_match('/\d+/', $full, $match);
if (!is_array($match)) {
return "核销失败,卡券规则格式不正确。";
}
if (!is_numeric($this->total)) {
return "核销失败,订单金额必须是数字";
}
if ($match[0] > $this->total) {
return '核销失败,订单金额不足。';
}
return $this->ticket = [
'total' => $match[0],
'price' => $price,
'profit' => $code->profit,
];
}
/**
* Notes: 如可核销记录
* @Author: 玄尘
* @Date : 2020/7/21 15:03
* @return string
*/
public function AddCoupon()
{
DB::beginTransaction();
try {
$couponData = [
'user_id' => $this->user->id,
'type' => Coupon::TYPE_YSD,
'outletId' => $this->outletId,
'orderid' => $this->orderid,
'PaOutletId' => '',
'redemptionCode' => $this->redemptionCode,
'thirdPartyGoodsId' => $this->query_coupon->activity->rule->code,
'couponName' => $this->query_coupon->activity->title,
'price' => $this->ticket['price'],
'total' => $this->total,
'profit' => $this->ticket['profit'],
'status' => $this->query_coupon->status,
'startTime' => $this->query_coupon->start_at,
'endTime' => $this->query_coupon->end_at,
];
$this->coupon = Coupon::create($couponData);
DB::commit();
return $this->coupon;
} catch (Exception $e) {
DB::rollback();
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,14 @@
<?php
namespace XuanChen\Coupon\Contracts;
interface CheckCouponContracts
{
/**
* start
* @return [type] [description]
*/
function start();
}

View File

@@ -0,0 +1,30 @@
<?php
namespace XuanChen\Coupon\Contracts;
interface CouponContracts
{
//发券接口
function grant();
/**
* Notes: 查询卡券详情
* @Author: 玄尘
* @Date : 2020/6/29 15:15
* @return mixed
*/
function detail();
//作废接口
function destroy();
/**
* Notes: 核销执行入口
* @Author: 玄尘
* @Date : 2020/6/29 14:49
* @return mixed
*/
function start();
}

View File

@@ -0,0 +1,144 @@
<?php
namespace XuanChen\Coupon;
use App\Models\Activity;
use App\Models\User;
use Illuminate\Support\Facades\DB;
/**
* 自有卡券系统
*/
class Coupon
{
/**
* Notes: 发券接口
* @Author: 玄尘
* @Date : 2020/6/28 15:07
* @param $activityId 活动编号
* @param $outletId 网点编号
* @param $mobile 手机号
*/
public static function Grant($activityId, $outletId, $mobile)
{
$model = config('xuanchen_coupon.rules.ysd.model');
return (new $model)->setActivityId($activityId)
->setOutletId($outletId)
->setMobile($mobile)
->grant();
}
/**
* Notes: 查询接口
* @Author: 玄尘
* @Date : 2020/7/21 11:58
* @param $redemptionCode
*/
public static function Query($redemptionCode, $outletId)
{
if (!$redemptionCode) {
return '查询失败,未获取到券码';
}
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setCode($redemptionCode)
->setOutletId($outletId)
->detail();
}
/**
* Notes: 卡券作废
* @Author: 玄尘
* @Date : 2020/9/2 16:54
* @param $redemptionCode
* @param $outletId
* @return string
*/
public static function Destroy($redemptionCode, $outletId)
{
try {
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setCode($redemptionCode)
->setOutletId($outletId)
->destroy();
} catch (\Exception $e) {
return $e->getMessage();
}
}
/**
* Notes: 根据券码 获取class
* @Author: 玄尘
* @Date : 2020/7/21 12:00
* @param $code
* @return string
*/
public static function getModelByCode($code)
{
$rules = config('xuanchen_coupon.rules');
if (!$rules) {
return '系统出错,未找到配置文件';
}
$model = '';
foreach ($rules as $rule) {
if (preg_match($rule['pattern'], $code, $matches)) {
$model = $rule['model'];
break;
}
}
if (!$model) {
throw new \Exception('卡券核销失败。未查到卡券所属');
}
return new $model;
}
/**
* Notes: description
* @Author: 玄尘
* @Date : 2020/8/21 13:33
* @param \App\Models\User $user 渠道
* @param string $redemptionCode 要核销的券码
* @param float $total 订单金额
* @param string $outletId 网点id
* @param string $orderid 订单id
* @return string
*/
public static function Redemption(User $user, string $redemptionCode, float $total, string $outletId, string $orderid = '')
{
try {
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setUser($user)
->setCode($redemptionCode)
->setTotal($total)
->setOutletId($outletId)
->setOrderId($orderid)
->start();
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace XuanChen\Coupon;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
class ServiceProvider extends LaravelServiceProvider
{
/**
* Register services.
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__ . '/../config/xuanchen_coupon.php' => config_path('xuanchen_coupon.php')]);
}
}
/**
* Bootstrap services.
* @return void
*/
public function boot()
{
$this->mergeConfigFrom(__DIR__ . '/../config/xuanchen_coupon.php', 'xuanchen_coupon');
}
}

View File

@@ -0,0 +1,47 @@
<?php
namespace XuanChen\Coupon\Traits;
use App\Models\Log as LogModel;
trait Log
{
/**
* Notes: 插入日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $url
* @param $method
* @param $params
* @param string $type
* @return mixed
*/
public function createLog($url, $method, $params, $type = 'pingan')
{
$data = [
'path' => $url,
'method' => $method,
'type' => $type,
'in_source' => $params,
];
$info = LogModel::create($data);
return $info;
}
/**
* Notes: 更新日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $log
* @param $params
*/
public static function updateLog($log, $params)
{
$log->out_source = $params;
$log->save();
}
}

View File

@@ -0,0 +1,79 @@
<?php
namespace XuanChen\Coupon\Traits;
trait SetParams
{
//渠道
public $user;
//卡券编号
public $redemptionCode;
//订单金额
public $total;
//网点编号
public $outletId;
//活动id
public $activityId;
//手机号
public $mobile;
//设置渠道
public function setUser($user)
{
$this->user = $user;
return $this;
}
//设置核销码
public function setCode($redemptionCode)
{
$this->redemptionCode = $redemptionCode;
return $this;
}
//设置订单总额
public function setTotal($total)
{
$this->total = $total;
return $this;
}
//设置网点id
public function setOutletId($outletId)
{
$this->outletId = $outletId;
return $this;
}
//设置活动id
public function setActivityId($activityId)
{
$this->activityId = $activityId;
return $this;
}
//设置手机号
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
}

View File

@@ -0,0 +1,27 @@
{
"name": "xuanchen/unionPay",
"description": "银联对接",
"license": "MIT",
"authors": [
{
"name": "玄尘",
"email": "122383162@qq.com"
}
],
"require": {
"php": ">=7.1.3",
"laravel/framework": "*"
},
"autoload": {
"psr-0": {
"XuanChen\\UnionPay": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"XuanChen\\UnionPay\\ServiceProvider"
]
}
}
}

View File

@@ -0,0 +1,14 @@
<?php
return [
//公钥和私钥
'check' => [
'self' => [
'private' => storage_path('cert/self/private_rsa.pem'),
'public' => storage_path('cert/self/public_rsa.pem'),
],
'unionpay' => [
'public' => storage_path('cert/unionpay/public_rsa.pem'),
],
],
];

View File

@@ -0,0 +1,69 @@
<?php
namespace XuanChen\UnionPay\Action;
use Illuminate\Http\Request;
class Init
{
/**
* RSA验签
* @param $params 待签名数据
* @param $public_key 公钥字符串
* @param $sign 要校对的的签名结果
* return 验证结果
*/
public function rsaSign($params, $self = false)
{
$sign = $params['sign'];
unset($params['sign']);
$public_key = $this->getPublic($self);
$pub_key_id = openssl_get_publickey($public_key);
$signStr = $this->getSignString($params);
if ($pub_key_id) {
$result = (bool)openssl_verify($signStr, $sign, $pub_key_id);
openssl_free_key($pub_key_id);
} else {
return '公钥格式有误!';
}
return $result;
}
/**
* 获取待签名字符串
* @param array $params 参数数组
* @return string
*/
public function getSignString($params)
{
$params = array_filter($params);
ksort($params);
$signStr = http_build_query($params);
return $signStr;
}
//获取私钥
public function getPrivate()
{
$private = config('unionpay.check.self.private');
return file_get_contents($private);
}
//获取公钥
public function getPublic($self = false)
{
$public = config('unionpay.check.unionpay.public');
if ($self) {
$public = config('unionpay.check.self.public');
}
return file_get_contents($public);
}
}

View File

@@ -0,0 +1,50 @@
<?php
namespace XuanChen\UnionPay\Action;
use App\Models\ActivityCoupon;
use App\Models\User;
class Query
{
public function start()
{
try {
$info = User::where('outlet_id', $this->outletId)->first();
if (!$info) {
throw new \Exception('网点编号错误,未查询到网点信息');
}
$coupon = ActivityCoupon::where('code', $this->redemptionCode)->first();
if (!$coupon) {
throw new \Exception('卡券编号错误,未查询到卡券信息');
}
$activity = $coupon->activity;
if (!$activity) {
throw new \Exception('操作失败,未查到活动信息');
}
//获取所有可核销渠道
$verifications = $activity->verifications()->pluck('user_id');
if ($verifications->isEmpty()) {
throw new \Exception('操作失败,此活动还没有配置可核券渠道,请联系相关人员进行配置。');
}
if (!in_array($info->parent_id, $verifications->toArray())) {
throw new \Exception('操作失败,您没有权限查询此卡券信息。');
}
return $coupon;
} catch (\Exception $e) {
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,90 @@
<?php
namespace XuanChen\Coupon\Action;
use XuanChen\UnionPay\Action\Destroy;
use XuanChen\UnionPay\Action\Query;
use XuanChen\UnionPay\Action\Verification;
use XuanChen\UnionPay\Contracts\CouponContracts;
/**
* Class 银联对接优惠券
* @Author: 玄尘
* @Date: 2020/9/28 14:02
* @package XuanChen\Coupon\Action
*/
class UnionPayAction extends Init implements CouponContracts
{
/**
* Notes: 发券
* @Author: 玄尘
* @Date : 2020/7/21 10:08
* @return mixed
*/
public function grant()
{
return (new YsdGrant)->setActivityId($this->activityId)
->setOutletId($this->outletId)
->setMobile($this->mobile)
->start();
}
/**
* Notes: 查询卡券详情
* @Author: 玄尘
* @Date : 2020/6/29 15:15
* @return mixed
*/
public function detail()
{
$query_coupon = (new YsdQuery)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
if (!is_string($query_coupon)) {
return [
'name' => $query_coupon->activity->title,
'code' => $query_coupon->code,
'full' => $query_coupon->full,
'price' => $query_coupon->price,
'status' => $query_coupon->status,
'used_at' => (string)$query_coupon->used_at,
'startTime' => (string)$query_coupon->start_at,
'endTime' => (string)$query_coupon->end_at,
];
}
return $query_coupon;
}
/**
* Notes: 作废
* @Author: 玄尘
* @Date : 2020/7/21 11:32
*/
public function destroy()
{
return $res = (new YsdDestroy)->setCode($this->redemptionCode)
->setOutletId($this->outletId)
->start();
}
/**
* Notes: 核销执行入口
* @Author: 玄尘
* @Date : 2020/6/29 14:49
* @return mixed
*/
public function start()
{
return $res = (new YsdVerification)->setCode($this->redemptionCode)
->setUser($this->user)
->setOutletId($this->outletId)
->setTotal($this->total)
->setOrderId($this->orderid)
->start();
}
}

View File

@@ -0,0 +1,194 @@
<?php
namespace XuanChen\UnionPay\Action;
use App\Events\ConponCallback;
use App\Models\ActivityCoupon;
use App\Models\Coupon;
use Illuminate\Support\Facades\DB;
class Verification
{
public $ticket;
/**
* Notes: 核销具体流程
* @Author: 玄尘
* @Date : 2020/7/29 13:12
* @return array|string
*/
public function start()
{
//检查是否已经核销过
$res = $this->HasCheck();
if ($res !== false) {
return $res;
}
//查询卡券信息 返回model 返回string 说明报错
$this->query_coupon = (new YsdQuery)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
if (is_string($this->query_coupon)) {
return $this->query_coupon;
}
//检查可核销次数100元为1次。
if ($this->query_coupon->activity && $this->query_coupon->activity->need_check) {
$ret = $this->CheckCount();
if ($ret !== true) {
return $ret;
}
}
//校验卡券
$ticket = $this->checkCoupon();
if (!is_array($ticket)) {
return $ticket;
}
//增加核销记录
$coupon = $this->AddCoupon();
if (is_string($coupon)) {
return $coupon;
}
DB::beginTransaction();
try {
$this->query_coupon->status = ActivityCoupon::STATUS_USED;
$this->query_coupon->used_at = now();
$this->query_coupon->save();
$this->coupon->status = 2;
$this->coupon->remark = '核销成功';
$this->coupon->save();
//返回的数据
$resdata = [
'name' => $this->coupon->couponName,
'total' => $this->coupon->total,
'price' => $this->coupon->price,
];
//核销成功 执行分润
$this->coupon->profit();
DB::commit();
event(new ConponCallback($this->query_coupon));
return $resdata;
} catch (Exception $e) {
DB::rollback();
$this->coupon->status = 3;
$this->coupon->remark = '核销失败 ' . $e->getMessage();
$this->coupon->save();
return $this->coupon->remark;
}
}
/**
* Notes: 检查卡券信息
* @Author: 玄尘
* @Date : 2020/6/29 16:40
* @return string
*/
public function checkCoupon()
{
if (!$this->query_coupon->canRedemption()) {
return '核销失败,优惠券不可核销';
}
$now = now();
if ($this->query_coupon->start_at->gt($now)) {
return '核销失败,卡券未到可用时间。请在' . $this->query_coupon->start_at->format('Y-m-d H:i:s') . '后使用';
}
if ($now->gt($this->query_coupon->end_at)) {
return '核销失败,卡券已过期。';
}
$rule_code = $this->query_coupon->activity->rule->code;
$code = $this->user->code->where('code', $rule_code)->first();
if (!$code) {
return "核销失败,您没有权限使用此卡券优惠活动。";
}
$ticket = explode('-', $rule_code);
if (!is_array($ticket) || count($ticket) != 3) {
return "核销失败,卡券规则格式不正确";
}
$full = $ticket[1]; //full100
$price = $ticket[2];
// preg_match('/(\d{3}(\.\d+)?)/is', $full, $match);
preg_match('/\d+/', $full, $match);
if (!is_array($match)) {
return "核销失败,卡券规则格式不正确。";
}
if (!is_numeric($this->total)) {
return "核销失败,订单金额必须是数字";
}
if ($match[0] > $this->total) {
return '核销失败,订单金额不足。';
}
return $this->ticket = [
'total' => $match[0],
'price' => $price,
'profit' => $code->profit,
];
}
/**
* Notes: 如可核销记录
* @Author: 玄尘
* @Date : 2020/7/21 15:03
* @return string
*/
public function AddCoupon()
{
DB::beginTransaction();
try {
$couponData = [
'user_id' => $this->user->id,
'type' => Coupon::TYPE_YSD,
'outletId' => $this->outletId,
'orderid' => $this->orderid,
'PaOutletId' => '',
'redemptionCode' => $this->redemptionCode,
'thirdPartyGoodsId' => $this->query_coupon->activity->rule->code,
'couponName' => $this->query_coupon->activity->title,
'price' => $this->ticket['price'],
'total' => $this->total,
'profit' => $this->ticket['profit'],
'status' => $this->query_coupon->status,
'startTime' => $this->query_coupon->start_at,
'endTime' => $this->query_coupon->end_at,
];
$this->coupon = Coupon::create($couponData);
DB::commit();
return $this->coupon;
} catch (Exception $e) {
DB::rollback();
return $e->getMessage();
}
}
}

View File

@@ -0,0 +1,14 @@
<?php
namespace XuanChen\UnionPay\Contracts;
interface CheckCouponContracts
{
/**
* start
* @return [type] [description]
*/
function start();
}

View File

@@ -0,0 +1,30 @@
<?php
namespace XuanChen\Coupon\Contracts;
interface CouponContracts
{
//发券接口
function grant();
/**
* Notes: 查询卡券详情
* @Author: 玄尘
* @Date : 2020/6/29 15:15
* @return mixed
*/
function detail();
//作废接口
function destroy();
/**
* Notes: 核销执行入口
* @Author: 玄尘
* @Date : 2020/6/29 14:49
* @return mixed
*/
function start();
}

View File

@@ -0,0 +1,31 @@
<?php
namespace XuanChen\UnionPay;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
class ServiceProvider extends LaravelServiceProvider
{
/**
* Register services.
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__ . '/../config/unionpay.php' => config_path('unionpay.php')]);
}
}
/**
* Bootstrap services.
* @return void
*/
public function boot()
{
$this->mergeConfigFrom(__DIR__ . '/../config/unionpay.php', 'unionpay');
}
}

View File

@@ -0,0 +1,47 @@
<?php
namespace XuanChen\UnionPay\Traits;
use App\Models\Log as LogModel;
trait Log
{
/**
* Notes: 插入日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $url
* @param $method
* @param $params
* @param string $type
* @return mixed
*/
public function createLog($url, $method, $params, $type = 'pingan')
{
$data = [
'path' => $url,
'method' => $method,
'type' => $type,
'in_source' => $params,
];
$info = LogModel::create($data);
return $info;
}
/**
* Notes: 更新日志
* @Author: 玄尘
* @Date : 2020/6/30 10:29
* @param $log
* @param $params
*/
public static function updateLog($log, $params)
{
$log->out_source = $params;
$log->save();
}
}

View File

@@ -0,0 +1,149 @@
<?php
namespace XuanChen\UnionPay;
use App\Models\User;
use http\Env\Request;
/**
* 银联入口
*/
class UnionPay
{
/**
* Notes: 查询接口
* @Author: 玄尘
* @Date : 2020/7/21 11:58
* @param $redemptionCode
*/
public static function Query(Request $request)
{
$inputs = $request->all();
$sign = $inputs['sign'];
unset($inputs['sign']);
if (!$redemptionCode) {
return '查询失败,未获取到券码';
}
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setCode($redemptionCode)
->setOutletId($outletId)
->detail();
}
/**
* Notes: 卡券作废
* @Author: 玄尘
* @Date : 2020/9/2 16:54
* @param $redemptionCode
* @param $outletId
* @return string
*/
public static function Destroy($redemptionCode, $outletId)
{
try {
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setCode($redemptionCode)
->setOutletId($outletId)
->destroy();
} catch (\Exception $e) {
return $e->getMessage();
}
}
/**
* Notes: 根据券码 获取class
* @Author: 玄尘
* @Date : 2020/7/21 12:00
* @param $code
* @return string
*/
public static function getModelByCode($code)
{
$rules = config('xuanchen_coupon.rules');
if (!$rules) {
return '系统出错,未找到配置文件';
}
$model = '';
foreach ($rules as $rule) {
if (preg_match($rule['pattern'], $code, $matches)) {
$model = $rule['model'];
break;
}
}
if (!$model) {
throw new \Exception('卡券核销失败。未查到卡券所属');
}
return new $model;
}
/**
* Notes: description
* @Author: 玄尘
* @Date : 2020/8/21 13:33
* @param \App\Models\User $user 渠道
* @param string $redemptionCode 要核销的券码
* @param float $total 订单金额
* @param string $outletId 网点id
* @param string $orderid 订单id
* @return string
*/
public static function Redemption(User $user, string $redemptionCode, float $total, string $outletId, string $orderid = '')
{
try {
$model = self::getModelByCode($redemptionCode);
if (is_string($model)) {
return $model;
}
return $model->setUser($user)
->setCode($redemptionCode)
->setTotal($total)
->setOutletId($outletId)
->setOrderId($orderid)
->start();
} catch (\Exception $e) {
return $e->getMessage();
}
}
//验证签名
public function checkSign($params)
{
$sign = $params['sign'];
unset($params['sign']);
$signStr = $this->getSignString($params);
$private_key = $this->getPrivate();
$privKeyId = openssl_pkey_get_private($private_key);
if (!$privKeyId) {
return '私钥格式有误';
}
openssl_sign($signStr, $signature, $privKeyId, OPENSSL_ALGO_SHA1);
openssl_free_key($privKeyId);
return bin2hex($signature);
}
}

View File

@@ -1,83 +0,0 @@
<div class="box grid-box">
<?php if(isset($title)): ?>
<div class="box-header with-border">
<h3 class="box-title"> <?php echo e($title, false); ?></h3>
</div>
<?php endif; ?>
<?php if( $grid->showTools() || $grid->showExportBtn() || $grid->showCreateBtn() ): ?>
<div class="box-header with-border">
<div class="pull-right">
<?php echo $grid->renderColumnSelector(); ?>
<?php echo $grid->renderExportButton(); ?>
<?php echo $grid->renderCreateButton(); ?>
</div>
<?php if( $grid->showTools() ): ?>
<div class="pull-left">
<?php echo $grid->renderHeaderTools(); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php echo $grid->renderFilter(); ?>
<?php echo $grid->renderHeader(); ?>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover grid-table" id="<?php echo e($grid->tableID, false); ?>">
<thead>
<tr>
<?php $__currentLoopData = $grid->visibleColumns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th <?php echo $column->formatHtmlAttributes(); ?>><?php echo $column->getLabel(); ?><?php echo $column->renderHeader(); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
</thead>
<?php if($grid->hasQuickCreate()): ?>
<?php echo $grid->renderQuickCreate(); ?>
<?php endif; ?>
<tbody>
<?php if($grid->rows()->isEmpty() && $grid->showDefineEmptyPage()): ?>
<?php echo $__env->make('admin::grid.empty-grid', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>
<?php $__currentLoopData = $grid->rows(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr <?php echo $row->getRowAttributes(); ?>>
<?php $__currentLoopData = $grid->visibleColumnNames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<td <?php echo $row->getColumnAttributes($name); ?>>
<?php echo $row->column($name); ?>
</td>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
<?php echo $grid->renderTotalRow(); ?>
</table>
</div>
<?php echo $grid->renderFooter(); ?>
<div class="box-footer clearfix">
<?php echo $grid->paginator(); ?>
</div>
<!-- /.box-body -->
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/grid/table.blade.php ENDPATH**/ ?>

View File

@@ -1,36 +0,0 @@
<form <?php echo $attributes; ?>>
<div class="box-body fields-group">
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $field->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php if($method != 'GET'): ?>
<input type="hidden" name="_token" value="<?php echo e(csrf_token(), false); ?>">
<?php endif; ?>
<!-- /.box-body -->
<?php if(count($buttons) > 0): ?>
<div class="box-footer">
<div class="col-md-<?php echo e($width['label'], false); ?>"></div>
<div class="col-md-<?php echo e($width['field'], false); ?>">
<?php if(in_array('reset', $buttons)): ?>
<div class="btn-group pull-left">
<button type="reset" class="btn btn-warning pull-right"><?php echo e(trans('admin.reset'), false); ?></button>
</div>
<?php endif; ?>
<?php if(in_array('submit', $buttons)): ?>
<div class="btn-group pull-right">
<button type="submit" class="btn btn-info pull-right"><?php echo e(trans('admin.submit'), false); ?></button>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</form>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/widgets/form.blade.php ENDPATH**/ ?>

View File

@@ -1,29 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo ($errors->has($errorKey['start'].'start') || $errors->has($errorKey['end'].'end')) ? 'has-error' : ''; ?>">
<label for="<?php echo e($id['start'], false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="row" style="width: 370px">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text" name="<?php echo e($name['start'], false); ?>" value="<?php echo e(old($column['start'], $value['start'] ?? null), false); ?>" class="form-control <?php echo e($class['start'], false); ?>" style="width: 150px" <?php echo $attributes; ?> />
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text" name="<?php echo e($name['end'], false); ?>" value="<?php echo e(old($column['end'], $value['end'] ?? null), false); ?>" class="form-control <?php echo e($class['end'], false); ?>" style="width: 150px" <?php echo $attributes; ?> />
</div>
</div>
</div>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/daterange.blade.php ENDPATH**/ ?>

View File

@@ -1,67 +0,0 @@
<!-- Main Header -->
<header class="main-header">
<!-- Logo -->
<a href="<?php echo e(admin_url('/'), false); ?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><?php echo config('admin.logo-mini', config('admin.name')); ?></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><?php echo config('admin.logo', config('admin.name')); ?></span>
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<ul class="nav navbar-nav hidden-sm visible-lg-block">
<?php echo Admin::getNavbar()->render('left'); ?>
</ul>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<?php echo Admin::getNavbar()->render(); ?>
<!-- User Account Menu -->
<li class="dropdown user user-menu">
<!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar-->
<img src="<?php echo e(Admin::user()->avatar, false); ?>" class="user-image" alt="User Image">
<!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs"><?php echo e(Admin::user()->name, false); ?></span>
</a>
<ul class="dropdown-menu">
<!-- The user image in the menu -->
<li class="user-header">
<img src="<?php echo e(Admin::user()->avatar, false); ?>" class="img-circle" alt="User Image">
<p>
<?php echo e(Admin::user()->name, false); ?>
<small>Member since admin <?php echo e(Admin::user()->created_at, false); ?></small>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo e(admin_url('auth/setting'), false); ?>" class="btn btn-default btn-flat"><?php echo e(trans('admin.setting'), false); ?></a>
</div>
<div class="pull-right">
<a href="<?php echo e(admin_url('auth/logout'), false); ?>" class="btn btn-default btn-flat"><?php echo e(trans('admin.logout'), false); ?></a>
</div>
</li>
</ul>
</li>
<!-- Control Sidebar Toggle Button -->
</ul>
</div>
</nav>
</header><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/header.blade.php ENDPATH**/ ?>

View File

@@ -1,15 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<textarea name="<?php echo e($name, false); ?>" class="form-control <?php echo e($class, false); ?>" rows="<?php echo e($rows, false); ?>" placeholder="<?php echo e($placeholder, false); ?>" <?php echo $attributes; ?> ><?php echo e(old($column, $value), false); ?></textarea>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/textarea.blade.php ENDPATH**/ ?>

View File

@@ -1,31 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo $__env->yieldContent('title', $app_title??config('app.name')); ?></title>
<link rel="stylesheet" href="<?php echo e(asset('css/mzui.min.css'), false); ?>">
<link rel="stylesheet" href="<?php echo e(asset('css/swiper.min.css'), false); ?>">
<link rel="stylesheet" href="<?php echo e(asset('css/style.css'), false); ?>?_<?php echo e(time(), false); ?>">
<?php echo $__env->yieldContent('css'); ?>
<?php echo $__env->yieldContent('js'); ?>
</head>
<body>
<?php echo $__env->yieldContent('footer'); ?>
<?php echo $__env->yieldContent('pop'); ?>
<?php echo $__env->yieldContent('content'); ?>
</body>
<script type="text/javascript" src="/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/js/mzui.min.js" ></script>
<script type="text/javascript" src="/js/layer/layer.min.js" ></script>
<script type="text/javascript" src="/js/cjango.js?v=<?php echo e(uniqid(), false); ?>"></script>
<?php echo $__env->yieldContent('script'); ?>
</html>
<?php /**PATH /home/wwwroot/pingan/resources/views/layouts/app.blade.php ENDPATH**/ ?>

View File

@@ -1,32 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<input type="hidden" name="<?php echo e($name, false); ?>"/>
<select class="form-control <?php echo e($class, false); ?>" style="width: 100%;" name="<?php echo e($name, false); ?>" <?php echo $attributes; ?> >
<?php if($groups): ?>
<?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<optgroup label="<?php echo e($group['label'], false); ?>">
<?php $__currentLoopData = $group['options']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($select, false); ?>" <?php echo e($select == old($column, $value) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</optgroup>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<option value=""></option>
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($select, false); ?>" <?php echo e($select == old($column, $value) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</select>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/select.blade.php ENDPATH**/ ?>

View File

@@ -1,5 +0,0 @@
<?php $__currentLoopData = $html; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $item; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/html.blade.php ENDPATH**/ ?>

View File

@@ -1,5 +0,0 @@
<div class="form-group">
<label><?php echo e($label, false); ?></label>
<input style="width: 100%" <?php echo $attributes; ?> />
<?php echo $__env->make('admin::actions.form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/date.blade.php ENDPATH**/ ?>

View File

@@ -1,56 +0,0 @@
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title"><?php echo e($form->title(), false); ?></h3>
<div class="box-tools">
<?php echo $form->renderTools(); ?>
</div>
</div>
<!-- /.box-header -->
<!-- form start -->
<?php echo $form->open(); ?>
<div class="box-body">
<?php if(!$tabObj->isEmpty()): ?>
<?php echo $__env->make('admin::form.tab', compact('tabObj'), \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php else: ?>
<div class="fields-group">
<?php if($form->hasRows()): ?>
<?php $__currentLoopData = $form->getRows(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $row->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<?php $__currentLoopData = $layout->columns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-md-<?php echo e($column->width(), false); ?>">
<?php $__currentLoopData = $column->fields(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $field->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<!-- /.box-body -->
<?php echo $form->renderFooter(); ?>
<?php $__currentLoopData = $form->getHiddenFields(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $field->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<!-- /.box-footer -->
<?php echo $form->close(); ?>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form.blade.php ENDPATH**/ ?>

View File

@@ -1,14 +0,0 @@
<div <?php echo $attributes; ?>>
<div class="inner">
<h3><?php echo e($info, false); ?></h3>
<p><?php echo e($name, false); ?></p>
</div>
<div class="icon">
<i class="fa fa-<?php echo e($icon, false); ?>"></i>
</div>
<a href="<?php echo e($link, false); ?>" class="small-box-footer">
<?php echo e(trans('admin.more'), false); ?>&nbsp;
<i class="fa fa-arrow-circle-right"></i>
</a>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/widgets/info-box.blade.php ENDPATH**/ ?>

View File

@@ -1,6 +0,0 @@
<style type="text/css">
<?php $__currentLoopData = $style; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $s; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</style><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/style.blade.php ENDPATH**/ ?>

View File

@@ -1,62 +0,0 @@
<div class="row">
<div class="<?php echo e($viewClass['label'], false); ?>"><h4 class="pull-right"><?php echo e($label, false); ?></h4></div>
<div class="<?php echo e($viewClass['field'], false); ?>"></div>
</div>
<hr style="margin-top: 0px;">
<div id="has-many-<?php echo e($column, false); ?>" class="has-many-<?php echo e($column, false); ?>">
<div class="has-many-<?php echo e($column, false); ?>-forms">
<?php $__currentLoopData = $forms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pk => $form): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="has-many-<?php echo e($column, false); ?>-form fields-group">
<?php $__currentLoopData = $form->fields(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $field->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if($options['allowDelete']): ?>
<div class="form-group">
<label class="<?php echo e($viewClass['label'], false); ?> control-label"></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<div class="remove btn btn-warning btn-sm pull-right"><i class="fa fa-trash">&nbsp;</i><?php echo e(trans('admin.remove'), false); ?></div>
</div>
</div>
<?php endif; ?>
<hr>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<template class="<?php echo e($column, false); ?>-tpl">
<div class="has-many-<?php echo e($column, false); ?>-form fields-group">
<?php echo $template; ?>
<div class="form-group">
<label class="<?php echo e($viewClass['label'], false); ?> control-label"></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<div class="remove btn btn-warning btn-sm pull-right"><i class="fa fa-trash"></i>&nbsp;<?php echo e(trans('admin.remove'), false); ?></div>
</div>
</div>
<hr>
</div>
</template>
<?php if($options['allowCreate']): ?>
<div class="form-group">
<label class="<?php echo e($viewClass['label'], false); ?> control-label"></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<div class="add btn btn-success btn-sm"><i class="fa fa-save"></i>&nbsp;<?php echo e(trans('admin.new'), false); ?></div>
</div>
</div>
<?php endif; ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/hasmany.blade.php ENDPATH**/ ?>

View File

@@ -1,20 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<select class="form-control <?php echo e($class, false); ?>" style="width: 100%;" name="<?php echo e($name, false); ?>[]" multiple="multiple" data-placeholder="<?php echo e($placeholder, false); ?>" <?php echo $attributes; ?> >
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($select, false); ?>" <?php echo e(in_array($select, (array)old($column, $value)) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<input type="hidden" name="<?php echo e($name, false); ?>[]" />
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/listbox.blade.php ENDPATH**/ ?>

View File

@@ -1,35 +0,0 @@
<?php if(Admin::user()->visible(\Illuminate\Support\Arr::get($item, 'roles', [])) && Admin::user()->can(\Illuminate\Support\Arr::get($item, 'permission'))): ?>
<?php if(!isset($item['children'])): ?>
<li>
<?php if(url()->isValidUrl($item['uri'])): ?>
<a href="<?php echo e($item['uri'], false); ?>" target="_blank">
<?php else: ?>
<a href="<?php echo e(admin_url($item['uri']), false); ?>">
<?php endif; ?>
<i class="fa <?php echo e($item['icon'], false); ?>"></i>
<?php if(Lang::has($titleTranslation = 'admin.menu_titles.' . trim(str_replace(' ', '_', strtolower($item['title']))))): ?>
<span><?php echo e(__($titleTranslation), false); ?></span>
<?php else: ?>
<span><?php echo e(admin_trans($item['title']), false); ?></span>
<?php endif; ?>
</a>
</li>
<?php else: ?>
<li class="treeview">
<a href="#">
<i class="fa <?php echo e($item['icon'], false); ?>"></i>
<?php if(Lang::has($titleTranslation = 'admin.menu_titles.' . trim(str_replace(' ', '_', strtolower($item['title']))))): ?>
<span><?php echo e(__($titleTranslation), false); ?></span>
<?php else: ?>
<span><?php echo e(admin_trans($item['title']), false); ?></span>
<?php endif; ?>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<?php $__currentLoopData = $item['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $__env->make('admin::partials.menu', $item, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</li>
<?php endif; ?>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/menu.blade.php ENDPATH**/ ?>

View File

@@ -1,14 +0,0 @@
<div class="form-group">
<label><?php echo e($label, false); ?></label>
<select class="form-control <?php echo e($class, false); ?>" style="width: 100%;" name="<?php echo e($name, false); ?>" <?php echo $attributes; ?> >
<option value=""></option>
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $select => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($select, false); ?>" <?php echo e($select == old($column, $value) ?'selected':'', false); ?>><?php echo e($option, false); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<?php echo $__env->make('admin::actions.form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/select.blade.php ENDPATH**/ ?>

View File

@@ -1,15 +0,0 @@
<?php if(is_array($errorKey)): ?>
<?php $__currentLoopData = $errorKey; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $col): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($errors->has($col.$key)): ?>
<?php $__currentLoopData = $errors->get($col.$key); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo e($message, false); ?></label><br/>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<?php if($errors->has($errorKey)): ?>
<?php $__currentLoopData = $errors->get($errorKey); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i> <?php echo e($message, false); ?></label><br/>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/error.blade.php ENDPATH**/ ?>

View File

@@ -1,21 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="btn-group radio-group-toggle">
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="btn btn-default <?php echo e(($option == old($column, $value)) || ($value === null && in_array($label, $checked)) ?'active':'', false); ?>">
<input type="radio" name="<?php echo e($name, false); ?>" value="<?php echo e($option, false); ?>" class="hide minimal <?php echo e($class, false); ?>" <?php echo e(($option == old($column, $value)) || ($value === null && in_array($label, $checked)) ?'checked':'', false); ?> <?php echo $attributes; ?> />&nbsp;<?php echo e($label, false); ?>&nbsp;&nbsp;
</label>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/radiobutton.blade.php ENDPATH**/ ?>

View File

@@ -1,75 +0,0 @@
<?php $__env->startSection('content'); ?>
<section class="content-header">
<h1>
<?php echo $header ?: trans('admin.title'); ?>
<small><?php echo $description ?: trans('admin.description'); ?></small>
</h1>
<!-- breadcrumb start -->
<?php if($breadcrumb): ?>
<ol class="breadcrumb" style="margin-right: 30px;">
<li><a href="<?php echo e(admin_url('/'), false); ?>"><i class="fa fa-dashboard"></i> <?php echo e(__('Home'), false); ?></a></li>
<?php $__currentLoopData = $breadcrumb; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($loop->last): ?>
<li class="active">
<?php if(\Illuminate\Support\Arr::has($item, 'icon')): ?>
<i class="fa fa-<?php echo e($item['icon'], false); ?>"></i>
<?php endif; ?>
<?php echo e($item['text'], false); ?>
</li>
<?php else: ?>
<li>
<?php if(\Illuminate\Support\Arr::has($item, 'url')): ?>
<a href="<?php echo e(admin_url(\Illuminate\Support\Arr::get($item, 'url')), false); ?>">
<?php if(\Illuminate\Support\Arr::has($item, 'icon')): ?>
<i class="fa fa-<?php echo e($item['icon'], false); ?>"></i>
<?php endif; ?>
<?php echo e($item['text'], false); ?>
</a>
<?php else: ?>
<?php if(\Illuminate\Support\Arr::has($item, 'icon')): ?>
<i class="fa fa-<?php echo e($item['icon'], false); ?>"></i>
<?php endif; ?>
<?php echo e($item['text'], false); ?>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ol>
<?php elseif(config('admin.enable_default_breadcrumb')): ?>
<ol class="breadcrumb" style="margin-right: 30px;">
<li><a href="<?php echo e(admin_url('/'), false); ?>"><i class="fa fa-dashboard"></i> <?php echo e(__('Home'), false); ?></a></li>
<?php for($i = 2; $i <= count(Request::segments()); $i++): ?>
<li>
<?php echo e(ucfirst(Request::segment($i)), false); ?>
</li>
<?php endfor; ?>
</ol>
<?php endif; ?>
<!-- breadcrumb end -->
</section>
<section class="content">
<?php echo $__env->make('admin::partials.alerts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('admin::partials.exception', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('admin::partials.toastr', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php if($_view_): ?>
<?php echo $__env->make($_view_['view'], $_view_['data'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php else: ?>
<?php echo $_content_; ?>
<?php endif; ?>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin::index', ['header' => strip_tags($header)], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/content.blade.php ENDPATH**/ ?>

View File

@@ -1,5 +0,0 @@
<div class="form-group">
<label><?php echo e($label, false); ?></label>
<input <?php echo $attributes; ?>>
<?php echo $__env->make('admin::actions.form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/text.blade.php ENDPATH**/ ?>

View File

@@ -1,139 +0,0 @@
<?php $__env->startSection('title', '核销列表'); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/plugins/datapicker/datepicker3.css'), false); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/merchant/js/plugins/datapicker/bootstrap-datepicker.js'), false); ?>"></script>
<script type="text/javascript">
$("#time-interval .input-daterange").datepicker({
keyboardNavigation: !1,
forceParse: !1,
autoclose: !0,
clearBtn: true,
});
$("button").click(function(){
var $this = $(this);
var $form = $this.parents('form');
$("input[name='action']").val($this.data('action'));
$form.submit();
});
</script>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="ibox">
<div class="ibox-content">
<div class="row">
<div class="col-sm-12 m-b">
<form action="<?php echo e(route('merchant.coupons'), false); ?>" class="form-inline pull-right" method="get" accept-charset="utf-8">
<div class="input-group">
<div class="form-group">
<input type="text" placeholder="网点名称" name="outlet" class="input-sm form-control" value="<?php echo e(Request::input('outlet'), false); ?>">
</div>
<div class="form-group">
<input type="text" placeholder="平安券编号" name="redemptionCode" class="input-sm form-control" value="<?php echo e(Request::input('redemptionCode'), false); ?>">
</div>
<div class="form-group">
<select class="form-control m-b" name="status">
<option value="">状态</option>
<option value="2" <?php if(request()->status==2): ?> selected="" <?php endif; ?> >核销成功</option>
<option value="3" <?php if(request()->status==3): ?> selected="" <?php endif; ?> >核销失败</option>
</select>
</div>
<div class="form-group">
<select class="form-control m-b" name="thirdPartyGoodsId">
<option value="">政策</option>
<option value="YSD-full100-10" <?php if(request()->thirdPartyGoodsId=='YSD-full100-10'): ?> selected="" <?php endif; ?> >100减10元</option>
<option value="YSD-full100-25" <?php if(request()->thirdPartyGoodsId=='YSD-full100-25'): ?> selected="" <?php endif; ?> >100减25元</option>
<option value="YSD-full100-50" <?php if(request()->thirdPartyGoodsId=='YSD-full100-50'): ?> selected="" <?php endif; ?> >100减50元</option>
<option value="YSD-full200-100" <?php if(request()->thirdPartyGoodsId=='YSD-full200-100'): ?> selected="" <?php endif; ?> >200减100元</option>
</select>
</div>
<div class="form-group" id="time-interval">
<div class="input-daterange input-group">
<input type="text" class="input-sm form-control" placeholder="核销时间" readonly name="start" value="<?php echo e(Request::input('start'), false); ?>" />
<span class="input-group-addon">~</span>
<input type="text" class="input-sm form-control" placeholder="核销时间" readonly name="end" value="<?php echo e(Request::input('end'), false); ?>" />
</div>
</div>
<span class="input-group-btn">
<input type="hidden" name="action" value="search">
<button type="button" class="btn btn-sm btn-primary" data-action="search" ><i class="fa fa-check"></i>&nbsp;搜索</button>
<button type="button" class="btn btn-sm btn-warning confirm" tip='确认要导出当前条件内容?' data-action="excel"><i class="fa fa-paste"></i>&nbsp;导出</button>
</span>
<span class="input-group-btn">
</span>
</div>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th width="100">ID</th>
<th>网点名称</th>
<th>平安券编号</th>
<th>优惠政策</th>
<th>核销金额</th>
<th>状态</th>
<th>处理结果</th>
<th>核销时间</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td> <?php echo e($coupon->id, false); ?> </td>
<td><?php echo e($coupon->outlet ? $coupon->outlet->nickname : 'Id:' . $coupon->outletId, false); ?></td>
<td><?php echo e($coupon->redemptionCode, false); ?></td>
<td><?php echo e($coupon->couponName, false); ?></td>
<td><?php echo e($coupon->price, false); ?></td>
<td><?php echo e($coupon->status_text, false); ?></td>
<td><?php echo e($coupon->remark, false); ?></td>
<td><?php echo e($coupon->created_at, false); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div>
<span class="badge badge-primary">全部:<?php echo e($data['all'], false); ?>张 </span>
<span class="badge badge-success">成功:<?php echo e($data['pass'], false); ?>张 </span>
<span class="badge badge-error">失败:<?php echo e($data['reject'], false); ?>张 </span>
</div>
<div class="text-right">
<?php echo e($coupons->appends([
'outlet'=>Request::input('outlet'),
'status'=>Request::input('status'),
'redemptionCode'=>Request::input('redemptionCode'),
'start'=>Request::input('start'),
'end'=>Request::input('end'),
])->links('Merchant::common.pagination'), false); ?>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/coupon/index.blade.php ENDPATH**/ ?>

View File

@@ -1,6 +0,0 @@
<div class="form-group">
<label><?php echo e($label, false); ?></label>
<input type="file" class="<?php echo e($class, false); ?>" name="<?php echo e($name, false); ?>" <?php echo $attributes; ?> />
<?php echo $__env->make('admin::actions.form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/file.blade.php ENDPATH**/ ?>

View File

@@ -1,17 +0,0 @@
<li class="dd-item" data-id="<?php echo e($branch[$keyName], false); ?>">
<div class="dd-handle">
<?php echo $branchCallback($branch); ?>
<span class="pull-right dd-nodrag">
<a href="<?php echo e(url("$path/$branch[$keyName]/edit"), false); ?>"><i class="fa fa-edit"></i></a>
<a href="javascript:void(0);" data-id="<?php echo e($branch[$keyName], false); ?>" class="tree_branch_delete"><i class="fa fa-trash"></i></a>
</span>
</div>
<?php if(isset($branch['children'])): ?>
<ol class="dd-list">
<?php $__currentLoopData = $branch['children']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $__env->make($branchView, $branch, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ol>
<?php endif; ?>
</li><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/tree/branch.blade.php ENDPATH**/ ?>

View File

@@ -1,21 +0,0 @@
<?php $__env->startSection('title', 'dashboard - index'); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-sm-4">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>商户信息</h5>
</div>
<div class="ibox-content">
<p><i class="fa "></i> 登录账户:<?php echo e($user->username, false); ?></p>
<p><i class="fa "></i> 用户昵称:<?php echo e($user->nickname, false); ?></p>
<p><i class="fa "></i> 用户身份:<?php echo e($user->identity_text, false); ?></p>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/index/dashboard.blade.php ENDPATH**/ ?>

View File

@@ -1,40 +0,0 @@
<div class="box-header with-border <?php echo e($expand?'':'hide', false); ?> filter-box" id="<?php echo e($filterID, false); ?>">
<form action="<?php echo $action; ?>" class="form-horizontal" pjax-container method="get">
<div class="row">
<?php $__currentLoopData = $layout->columns(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-md-<?php echo e($column->width(), false); ?>">
<div class="box-body">
<div class="fields-group">
<?php $__currentLoopData = $column->filters(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $filter->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<!-- /.box-body -->
<div class="box-footer">
<div class="row">
<div class="col-md-<?php echo e($layout->columns()->first()->width(), false); ?>">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="btn-group pull-left">
<button class="btn btn-info submit btn-sm"><i
class="fa fa-search"></i>&nbsp;&nbsp;<?php echo e(trans('admin.search'), false); ?></button>
</div>
<div class="btn-group pull-left " style="margin-left: 10px;">
<a href="<?php echo $action; ?>" class="btn btn-default btn-sm"><i
class="fa fa-undo"></i>&nbsp;&nbsp;<?php echo e(trans('admin.reset'), false); ?></a>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/filter/container.blade.php ENDPATH**/ ?>

View File

@@ -1,39 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($column) ?: 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>" id="<?php echo e($id, false); ?>">
<?php if($canCheckAll): ?>
<span class="icheck">
<label class="checkbox-inline">
<input type="checkbox" class="<?php echo e($checkAllClass, false); ?>"/>&nbsp;<?php echo e(__('admin.all'), false); ?>
</label>
</span>
<hr style="margin-top: 10px;margin-bottom: 0;">
<?php endif; ?>
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $inline ? '<span class="icheck">' : '<div class="checkbox icheck">'; ?>
<label <?php if($inline): ?>class="checkbox-inline"<?php endif; ?>>
<input type="checkbox" name="<?php echo e($name, false); ?>[]" value="<?php echo e($option, false); ?>" class="<?php echo e($class, false); ?>" <?php echo e(false !== array_search($option, array_filter(old($column, $value ?? []))) || ($value === null && in_array($option, $checked)) ?'checked':'', false); ?> <?php echo $attributes; ?> />&nbsp;<?php echo e($label, false); ?>&nbsp;&nbsp;
</label>
<?php echo $inline ? '</span>' : '</div>'; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<input type="hidden" name="<?php echo e($name, false); ?>[]">
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/checkbox.blade.php ENDPATH**/ ?>

View File

@@ -1,59 +0,0 @@
<?php $__env->startSection('title', '修改密码'); ?>
<?php $__env->startSection('content'); ?>
<form class="form-horizontal" method="post" action="<?php echo e(route('merchant.setting.password'), false); ?>">
<div class="form-group">
<label class="col-xs-3 control-label">新密码</label>
<div class="col-xs-8">
<input type="password" class="form-control" value="" name="password">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label">确认密码</label>
<div class="col-xs-8">
<input type="password" class="form-control" value="" name="password_confirmation">
</div>
</div>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-8">
<?php echo csrf_field(); ?>
<button class="btn btn-primary btn-block ajax" type="button">
<i class="icon icon-check"></i> 保存
</button>
</div>
</div>
</form>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script type="text/javascript">
$('body').on('click', '.ajax', function(event) {
if ($(this).hasClass('disabled') || $(this).attr('disabled')) {
return false;
};
event.preventDefault();
var $this = $(this);
var $form = $this.parents('form');
var $action = $form.attr("action");
$this.attr('disabled', 'disabled');
var query = $form.serialize();
$.post($action, query, function(res) {
$this.removeAttr('disabled');
if (res.code) {
parent.updateAlert(res.msg, res.code, function() {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
} else {
parent.updateAlert(res.msg, res.code);
}
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/setting/password.blade.php ENDPATH**/ ?>

View File

@@ -1,99 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo e(config('app.name', ''), false); ?> --渠道管理系统登录</title>
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/js/plugins/layui/css/layui.css'), false); ?>" />
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/login.css'), false); ?>" />
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/animate.min.css'), false); ?>" />
<style type="text/css">
body {
background-image: url(<?php echo e(asset('assets/merchant/img/bg'.rand(1,3).'.jpg'), false); ?>);
}
</style>
<script>
if (window.top !== window.self) {
window.top.location = window.location;
}
</script>
</head>
<body>
<div class="mask"></div>
<div class="main">
<h1><span style="font-size: 84px;"><?php echo e(config('app.name', ''), false); ?> 渠道管理</span><span style="font-size:20px;"><?php echo e(env('APP_VERSION'), false); ?></span></h1>
<div class="enter">
<h2 class="animated">Click&nbsp;&nbsp;Here&nbsp;&nbsp;To&nbsp;&nbsp;Login</h2>
<form action="<?php echo e(route('merchant.login'), false); ?>" class="layui-form animated bounceInLeft" method="post">
<div class="layui-form-item">
<label class="login-icon"> <i class="layui-icon">&#xe612;</i> </label>
<input type="text" name="username" lay-verify="username" autocomplete="off" placeholder="请输入登录名" class="layui-input" value="" />
</div>
<div class="layui-form-item">
<label class="login-icon"> <i class="layui-icon">&#xe642;</i> </label>
<input type="password" name="password" lay-verify="password" autocomplete="off" placeholder="请输入密码" class="layui-input" />
</div>
<div class="layui-form-item">
<div class="pull-left login-remember">
<label>记住帐号?</label>
<input type="checkbox" name="remember" value="true" checked lay-skin="switch" title="保持登录">
</div>
<div class="pull-right">
<?php echo csrf_field(); ?>
<button class="layui-btn layui-btn-primary" lay-submit lay-filter="login"> <i class="layui-icon">&#xe650;</i> 登录 </button>
</div>
<div class="clear"></div>
</div>
</form>
</div>
</div>
<script type="text/javascript" src="<?php echo e(asset('assets/merchant/js/plugins/layui/layui.js'), false); ?>"></script>
<script>
layui.use(['form'], function() {
var $ = layui.jquery, form = layui.form();
$("h2").on('click', function(){
$(this).hide();
$('.layui-form').show();
});
layer.config({
time: 1000
});
form.verify({
username: function (value) {
if (value.length < 4 || value.length > 20) {
return "账号应在4-20位之间"
}
var reg = /^[a-zA-Z0-9]*$/;
if (!reg.test(value)) {
return "账号只能为英文或数字";
}
},
password: [/^[\S]{4,20}$/, '密码应在4-20位之间'],
verify: [/^[\S]{4}$/, '验证码长度有误']
});
form.on('submit(login)', function(data) {
layer.load(2);
$('form').removeClass('bounceInLeft');
$.post(data.form.action, data.field, function(res) {
layer.closeAll('loading');
if (res.code == 1) {
layer.msg(res.msg, {icon: 1, time: 1000}, function() {
location.href = res.url;
});
} else {
$('form').addClass('shake');
layer.msg(res.msg, {icon: 5}, function() {
$('form').removeClass('shake');
});
$('.code').click();
}
});
return false;
});
});
</script>
</body>
</html>
<?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/auth/login.blade.php ENDPATH**/ ?>

View File

@@ -1,14 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?>">
<label class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<div class="box box-solid box-default no-margin">
<!-- /.box-header -->
<div class="box-body">
<?php echo $value; ?>&nbsp;
</div><!-- /.box-body -->
</div>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/display.blade.php ENDPATH**/ ?>

View File

@@ -1,37 +0,0 @@
<?php $__env->startSection('title', '订单列表'); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/plugins/datapicker/datepicker3.css'), false); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/merchant/js/plugins/datapicker/bootstrap-datepicker.js'), false); ?>"></script>
<script type="text/javascript">
$("#time-interval .input-daterange").datepicker({
keyboardNavigation: !1,
forceParse: !1,
autoclose: !0,
clearBtn: true,
});
</script>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<form method="post" class="form-horizontal">
<div class="form-group" id="time-interval">
<label class="col-xs-3 control-label">日期</label>
<div class="col-xs-8 input-daterange">
<input type="text" class="input-sm form-control" placeholder="核销时间" readonly name="date" value="" />
</div>
</div>
<div class="form-group">
<div class="col-xs-8 col-xs-offset-3">
<?php echo csrf_field(); ?>
<button class="btn btn-primary ajax-post" type="submit">确认分润</button>
</div>
</div>
</form>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/coupon/profits.blade.php ENDPATH**/ ?>

View File

@@ -1,97 +0,0 @@
<?php $__env->startSection('title', '核销统计'); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/merchant/css/plugins/datapicker/datepicker3.css'), false); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/merchant/js/plugins/datapicker/bootstrap-datepicker.js'), false); ?>"></script>
<script type="text/javascript">
$("#time-interval .input-daterange").datepicker({
autoclose: true, //自动关闭
beforeShowDay: $.noop, //在显示日期之前调用的函数
clearBtn: true, //显示清除按钮
forceParse: true, //是否强制转换不符合格式的字符串
format: 'yyyy-mm', //日期格式
language: 'cn', //语言
minViewMode: 1, // 最小精度选择
startView: 1, //开始显示
WeekHighlighted:true, // 本周高亮
endDate:new Date()
});
$("button").click(function(){
var $this = $(this);
var $form = $this.parents('form');
$("input[name='action']").val($this.data('action'));
$form.submit();
});
</script>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="ibox">
<div class="row">
<div class="col-sm-12 m-b">
<form action="<?php echo e(route('merchant.census'), false); ?>" class="form-inline pull-right" method="get" accept-charset="utf-8">
<div class="form-group" id="time-interval">
<div class="input-daterange input-group">
<input type="text" class="input-sm form-control" placeholder="核销月份" readonly name="month" value="<?php echo e(Request::input('month')??now()->format('Y-m'), false); ?>" />
</div>
</div>
<div class="input-group">
<span class="input-group-btn">
<input type="hidden" name="action" value="search">
<button type="button" class="btn btn-sm btn-primary" data-action="search" ><i class="fa fa-check"></i>&nbsp;刷新</button>
<button type="button" class="btn btn-sm btn-warning confirm" tip='确认要导出当前条件内容?' data-action="excel"><i class="fa fa-paste"></i>&nbsp;导出</button>
</span>
</div>
</form>
</div>
</div>
<div class="ibox-content">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>日期</th>
<th>100元减10元优惠券</th>
<th>100元减25元优惠券</th>
<th>100元减50元优惠券</th>
<th>200元减100元优惠券</th>
<th></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td> <?php echo e($coupon['day'], false); ?> </td>
<td> <?php echo e($coupon['ysd10'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd25'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd50'] ??'', false); ?> </td>
<td> <?php echo e($coupon['ysd100']??'', false); ?> </td>
<td>
<a href="<?php echo e(route('merchant.coupons',['start'=>$coupon['day'],'end'=>$coupon['day']]), false); ?>">查看</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr style="color: #f8ac59">
<td> 全部</td>
<td> <?php echo e($all['ysd10'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd25'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd50'] ??'', false); ?> </td>
<td> <?php echo e($all['ysd100']??'', false); ?> </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Merchant::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/census/index.blade.php ENDPATH**/ ?>

View File

@@ -1,49 +0,0 @@
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo e(Admin::user()->avatar, false); ?>" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p><?php echo e(Admin::user()->name, false); ?></p>
<!-- Status -->
<a href="#"><i class="fa fa-circle text-success"></i> <?php echo e(trans('admin.online'), false); ?></a>
</div>
</div>
<?php if(config('admin.enable_menu_search')): ?>
<!-- search form (Optional) -->
<form class="sidebar-form" style="overflow: initial;" onsubmit="return false;">
<div class="input-group">
<input type="text" autocomplete="off" class="form-control autocomplete" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
</button>
</span>
<ul class="dropdown-menu" role="menu" style="min-width: 210px;max-height: 300px;overflow: auto;">
<?php $__currentLoopData = Admin::menuLinks(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
<a href="<?php echo e(admin_url($link['uri']), false); ?>"><i class="fa <?php echo e($link['icon'], false); ?>"></i><?php echo e(admin_trans($link['title']), false); ?></a>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
</form>
<!-- /.search form -->
<?php endif; ?>
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header"><?php echo e(trans('admin.menu'), false); ?></li>
<?php echo $__env->renderEach('admin::partials.menu', Admin::menu(), 'item'); ?>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/sidebar.blade.php ENDPATH**/ ?>

View File

@@ -1,6 +0,0 @@
<?php if($help): ?>
<span class="help-block">
<i class="fa <?php echo e(\Illuminate\Support\Arr::get($help, 'icon'), false); ?>"></i>&nbsp;<?php echo \Illuminate\Support\Arr::get($help, 'text'); ?>
</span>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/help-block.blade.php ENDPATH**/ ?>

View File

@@ -1,22 +0,0 @@
<div class="btn-group" style="margin-right: 5px" data-toggle="buttons">
<label class="btn btn-sm btn-dropbox <?php echo e($btn_class, false); ?> <?php echo e($expand ? 'active' : '', false); ?>" title="<?php echo e(trans('admin.filter'), false); ?>">
<input type="checkbox"><i class="fa fa-filter"></i><span class="hidden-xs">&nbsp;&nbsp;<?php echo e(trans('admin.filter'), false); ?></span>
</label>
<?php if($scopes->isNotEmpty()): ?>
<button type="button" class="btn btn-sm btn-dropbox dropdown-toggle" data-toggle="dropdown">
<span><?php echo e($current_label, false); ?></span>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<?php $__currentLoopData = $scopes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $scope): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $scope->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<li role="separator" class="divider"></li>
<li><a href="<?php echo e($url_no_scopes, false); ?>"><?php echo e(trans('admin.cancel'), false); ?></a></li>
</ul>
<?php endif; ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/filter/button.blade.php ENDPATH**/ ?>

View File

@@ -1,74 +0,0 @@
<!DOCTYPE html>
<html lang="<?php echo e(config('app.locale'), false); ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="csrf-token" content="<?php echo e(csrf_token(), false); ?>">
<title><?php echo e(Admin::title(), false); ?> <?php if($header): ?> | <?php echo e($header, false); ?><?php endif; ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<?php if(!is_null($favicon = Admin::favicon())): ?>
<link rel="shortcut icon" href="<?php echo e($favicon, false); ?>">
<?php endif; ?>
<?php echo Admin::css(); ?>
<script src="<?php echo e(Admin::jQuery(), false); ?>"></script>
<?php echo Admin::headerJs(); ?>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition <?php echo e(config('admin.skin'), false); ?> <?php echo e(join(' ', config('admin.layout')), false); ?>">
<?php if($alert = config('admin.top_alert')): ?>
<div style="text-align: center;padding: 5px;font-size: 12px;background-color: #ffffd5;color: #ff0000;">
<?php echo $alert; ?>
</div>
<?php endif; ?>
<div class="wrapper">
<?php echo $__env->make('admin::partials.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('admin::partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="content-wrapper" id="pjax-container">
<?php echo Admin::style(); ?>
<div id="app">
<?php echo $__env->yieldContent('content'); ?>
</div>
<?php echo Admin::script(); ?>
<?php echo Admin::html(); ?>
</div>
<?php echo $__env->make('admin::partials.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<button id="totop" title="Go to top" style="display: none;"><i class="fa fa-chevron-up"></i></button>
<script>
function LA() {}
LA.token = "<?php echo e(csrf_token(), false); ?>";
LA.user = <?php echo json_encode($_user_, 15, 512) ?>;
</script>
<!-- REQUIRED JS SCRIPTS -->
<?php echo Admin::js(); ?>
</body>
</html>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/index.blade.php ENDPATH**/ ?>

View File

@@ -1,35 +0,0 @@
<ul class="pagination pagination-sm no-margin pull-right">
<!-- Previous Page Link -->
<?php if($paginator->onFirstPage()): ?>
<li class="page-item disabled"><span class="page-link">&laquo;</span></li>
<?php else: ?>
<li class="page-item"><a class="page-link" href="<?php echo e($paginator->previousPageUrl(), false); ?>" rel="prev">&laquo;</a></li>
<?php endif; ?>
<!-- Pagination Elements -->
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<!-- "Three Dots" Separator -->
<?php if(is_string($element)): ?>
<li class="page-item disabled"><span class="page-link"><?php echo e($element, false); ?></span></li>
<?php endif; ?>
<!-- Array Of Links -->
<?php if(is_array($element)): ?>
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($page == $paginator->currentPage()): ?>
<li class="page-item active"><span class="page-link"><?php echo e($page, false); ?></span></li>
<?php else: ?>
<li class="page-item"><a class="page-link" href="<?php echo e($url, false); ?>"><?php echo e($page, false); ?></a></li>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<!-- Next Page Link -->
<?php if($paginator->hasMorePages()): ?>
<li class="page-item"><a class="page-link" href="<?php echo e($paginator->nextPageUrl(), false); ?>" rel="next">&raquo;</a></li>
<?php else: ?>
<li class="page-item disabled"><span class="page-link">&raquo;</span></li>
<?php endif; ?>
</ul>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/pagination.blade.php ENDPATH**/ ?>

View File

@@ -1,24 +0,0 @@
<div class="row">
<div class="<?php echo e($viewClass['label'], false); ?>"><h4 class="pull-right"><?php echo e($label, false); ?></h4></div>
<div class="<?php echo e($viewClass['field'], false); ?>"></div>
</div>
<hr style="margin-top: 0px;">
<div id="embed-<?php echo e($column, false); ?>" class="embed-<?php echo e($column, false); ?>">
<div class="embed-<?php echo e($column, false); ?>-forms">
<div class="embed-<?php echo e($column, false); ?>-form fields-group">
<?php $__currentLoopData = $form->fields(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $field->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<hr style="margin-top: 0px;"><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/embeds.blade.php ENDPATH**/ ?>

View File

@@ -1,13 +0,0 @@
<?php if(Session::has('toastr')): ?>
<?php
$toastr = Session::get('toastr');
$type = \Illuminate\Support\Arr::get($toastr->get('type'), 0, 'success');
$message = \Illuminate\Support\Arr::get($toastr->get('message'), 0, '');
$options = json_encode($toastr->get('options', []));
?>
<script>
$(function () {
toastr.<?php echo e($type, false); ?>('<?php echo $message; ?>', null, <?php echo $options; ?>);
});
</script>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/toastr.blade.php ENDPATH**/ ?>

View File

@@ -1,26 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="input-group">
<?php if($prepend): ?>
<span class="input-group-addon"><?php echo $prepend; ?></span>
<?php endif; ?>
<input <?php echo $attributes; ?> />
<?php if($append): ?>
<span class="input-group-addon clearfix"><?php echo $append; ?></span>
<?php endif; ?>
</div>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/input.blade.php ENDPATH**/ ?>

View File

@@ -1,3 +0,0 @@
<?php $__currentLoopData = $css; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<link rel="stylesheet" href="<?php echo e(admin_asset("$c"), false); ?>">
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/css.blade.php ENDPATH**/ ?>

View File

@@ -1,16 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<input type="checkbox" class="<?php echo e($class, false); ?> la_checkbox" <?php echo e(old($column, $value) == 'on' ? 'checked' : '', false); ?> <?php echo $attributes; ?> />
<input type="hidden" class="<?php echo e($class, false); ?>" name="<?php echo e($name, false); ?>" value="<?php echo e(old($column, $value), false); ?>" />
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/switchfield.blade.php ENDPATH**/ ?>

View File

@@ -1,2 +0,0 @@
<input type="hidden" name="<?php echo e($name, false); ?>" value="<?php echo e($value, false); ?>" class="<?php echo e($class, false); ?>" <?php echo $attributes; ?> />
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/hidden.blade.php ENDPATH**/ ?>

View File

@@ -1,54 +0,0 @@
<?php if($paginator->hasPages()): ?>
<form action="<?php echo e(url()->current(), false); ?>" method="get" accept-charset="utf-8">
<ul class="pagination" role="navigation">
<?php if($paginator->onFirstPage()): ?>
<li class="page-item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">
<span class="page-link" aria-hidden="true">&lsaquo;</span>
</li>
<?php else: ?>
<li class="page-item">
<a class="page-link" href="<?php echo e($paginator->previousPageUrl(), false); ?>" rel="prev" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">&lsaquo;</a>
</li>
<?php endif; ?>
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(is_string($element)): ?>
<li class="page-item disabled" aria-disabled="true"><span class="page-link"><?php echo e($element, false); ?></span></li>
<?php endif; ?>
<?php if(is_array($element)): ?>
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($page == $paginator->currentPage()): ?>
<li class="page-item active" aria-current="page"><span class="page-link"><?php echo e($page, false); ?></span></li>
<?php else: ?>
<li class="page-item"><a class="page-link" href="<?php echo e($url, false); ?>"><?php echo e($page, false); ?></a></li>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if($paginator->hasMorePages()): ?>
<li class="page-item">
<a class="page-link" href="<?php echo e($paginator->nextPageUrl(), false); ?>" rel="next" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">&rsaquo;</a>
</li>
<?php else: ?>
<li class="page-item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">
<span class="page-link" aria-hidden="true">&rsaquo;</span>
</li>
<?php endif; ?>
<li class="page-item disabled" aria-disabled="true">
<span class="page-link" aria-hidden="true">共<?php echo e($paginator->total(), false); ?>条</span>
</li>
<li>
<input type="text" style="width:50px;height:28px;border:1px solid #DDD;border-left:none;vertical-align:top;text-align:center" name="page" value="<?php echo e($paginator->currentPage(), false); ?>"><button type="submit" class="btn btn-sm" style="border-radius: 0 3px 3px 0;padding: 4px;">跳转</button>
</li>
</ul>
</form>
<?php endif; ?>
<?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/common/pagination.blade.php ENDPATH**/ ?>

View File

@@ -1,63 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $__env->yieldContent('title'); ?></title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.code {
border-right: 2px solid;
font-size: 26px;
padding: 0 15px 0 15px;
text-align: center;
}
.message {
font-size: 18px;
text-align: center;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="code">
<?php echo $__env->yieldContent('code'); ?>
</div>
<div class="message" style="padding: 10px;">
<?php echo $__env->yieldContent('message'); ?>
</div>
</div>
</body>
</html>
<?php /**PATH /home/wwwroot/pingan/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/minimal.blade.php ENDPATH**/ ?>

View File

@@ -1,41 +0,0 @@
<?php if($error = session()->get('error')): ?>
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-ban"></i><?php echo e(\Illuminate\Support\Arr::get($error->get('title'), 0), false); ?></h4>
<p><?php echo \Illuminate\Support\Arr::get($error->get('message'), 0); ?></p>
</div>
<?php elseif($errors = session()->get('errors')): ?>
<?php if($errors->hasBag('error')): ?>
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php $__currentLoopData = $errors->getBag("error")->toArray(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<p><?php echo \Illuminate\Support\Arr::get($message, 0); ?></p>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if($success = session()->get('success')): ?>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-check"></i><?php echo e(\Illuminate\Support\Arr::get($success->get('title'), 0), false); ?></h4>
<p><?php echo \Illuminate\Support\Arr::get($success->get('message'), 0); ?></p>
</div>
<?php endif; ?>
<?php if($info = session()->get('info')): ?>
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-info"></i><?php echo e(\Illuminate\Support\Arr::get($info->get('title'), 0), false); ?></h4>
<p><?php echo \Illuminate\Support\Arr::get($info->get('message'), 0); ?></p>
</div>
<?php endif; ?>
<?php if($warning = session()->get('warning')): ?>
<div class="alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-warning"></i><?php echo e(\Illuminate\Support\Arr::get($warning->get('title'), 0), false); ?></h4>
<p><?php echo \Illuminate\Support\Arr::get($warning->get('message'), 0); ?></p>
</div>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/alerts.blade.php ENDPATH**/ ?>

View File

@@ -1,22 +0,0 @@
<div class="input-group input-group-sm">
<?php if($group): ?>
<div class="input-group-btn">
<input type="hidden" name="<?php echo e($id, false); ?>_group" class="<?php echo e($group_name, false); ?>-operation" value="0"/>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="min-width: 32px;">
<span class="<?php echo e($group_name, false); ?>-label"><?php echo e($default['label'], false); ?></span>
&nbsp;&nbsp;
<span class="fa fa-caret-down"></span>
</button>
<ul class="dropdown-menu <?php echo e($group_name, false); ?>">
<?php $__currentLoopData = $group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><a href="#" data-index="<?php echo e($index, false); ?>"> <?php echo e($item['label'], false); ?> </a></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
<?php endif; ?>
<div class="input-group-addon">
<i class="fa fa-<?php echo e($icon, false); ?>"></i>
</div>
<input type="<?php echo e($type, false); ?>" class="form-control <?php echo e($id, false); ?>" placeholder="<?php echo e($placeholder, false); ?>" name="<?php echo e($name, false); ?>" value="<?php echo e(request($name, $value), false); ?>">
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/filter/text.blade.php ENDPATH**/ ?>

View File

@@ -1,9 +0,0 @@
<script data-exec-on-popstate>
$(function () {
<?php $__currentLoopData = $script; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $s; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
});
</script><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/script.blade.php ENDPATH**/ ?>

View File

@@ -1,5 +0,0 @@
<div class="form-group">
<label><?php echo e($label, false); ?></label>
<textarea name="<?php echo e($name, false); ?>" class="form-control <?php echo e($class, false); ?>" rows="<?php echo e($rows, false); ?>" placeholder="<?php echo e($placeholder, false); ?>" <?php echo $attributes; ?> ><?php echo e(old($column, $value), false); ?></textarea>
<?php echo $__env->make('admin::actions.form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/actions/form/textarea.blade.php ENDPATH**/ ?>

View File

@@ -1,13 +0,0 @@
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo e($label, false); ?></label>
<div class="col-sm-8" style="width: 390px">
<div class="input-group input-group-sm">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control" id="<?php echo e($id['start'], false); ?>" placeholder="<?php echo e($label, false); ?>" name="<?php echo e($name['start'], false); ?>" value="<?php echo e(request()->input("{$column}.start", \Illuminate\Support\Arr::get($value, 'start')), false); ?>">
<span class="input-group-addon" style="border-left: 0; border-right: 0;">-</span>
<input type="text" class="form-control" id="<?php echo e($id['end'], false); ?>" placeholder="<?php echo e($label, false); ?>" name="<?php echo e($name['end'], false); ?>" value="<?php echo e(request()->input("{$column}.end", \Illuminate\Support\Arr::get($value, 'end')), false); ?>">
</div>
</div>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/filter/betweenDatetime.blade.php ENDPATH**/ ?>

View File

@@ -1,22 +0,0 @@
<?php if(!$isHoldSelectAllCheckbox): ?>
<div class="btn-group <?php echo e($selectAllName, false); ?>-btn" style="display:none;margin-right: 5px;">
<a class="btn btn-sm btn-default hidden-xs"><span class="selected"></span></a>
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<?php if(!$actions->isEmpty()): ?>
<ul class="dropdown-menu" role="menu">
<?php $__currentLoopData = $actions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($action instanceof \Encore\Admin\Actions\BatchAction): ?>
<li><?php echo $action->render(); ?></li>
<?php else: ?>
<li><a href="#" class="<?php echo e($action->getElementClass(false), false); ?>"><?php echo $action->render(); ?> </a></li>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php endif; ?>
</div>
<?php endif; ?><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/grid/batch-actions.blade.php ENDPATH**/ ?>

View File

@@ -1,50 +0,0 @@
<div class="box">
<div class="box-header">
<div class="btn-group">
<a class="btn btn-primary btn-sm <?php echo e($id, false); ?>-tree-tools" data-action="expand" title="<?php echo e(trans('admin.expand'), false); ?>">
<i class="fa fa-plus-square-o"></i>&nbsp;<?php echo e(trans('admin.expand'), false); ?>
</a>
<a class="btn btn-primary btn-sm <?php echo e($id, false); ?>-tree-tools" data-action="collapse" title="<?php echo e(trans('admin.collapse'), false); ?>">
<i class="fa fa-minus-square-o"></i>&nbsp;<?php echo e(trans('admin.collapse'), false); ?>
</a>
</div>
<?php if($useSave): ?>
<div class="btn-group">
<a class="btn btn-info btn-sm <?php echo e($id, false); ?>-save" title="<?php echo e(trans('admin.save'), false); ?>"><i class="fa fa-save"></i><span class="hidden-xs">&nbsp;<?php echo e(trans('admin.save'), false); ?></span></a>
</div>
<?php endif; ?>
<?php if($useRefresh): ?>
<div class="btn-group">
<a class="btn btn-warning btn-sm <?php echo e($id, false); ?>-refresh" title="<?php echo e(trans('admin.refresh'), false); ?>"><i class="fa fa-refresh"></i><span class="hidden-xs">&nbsp;<?php echo e(trans('admin.refresh'), false); ?></span></a>
</div>
<?php endif; ?>
<div class="btn-group">
<?php echo $tools; ?>
</div>
<?php if($useCreate): ?>
<div class="btn-group pull-right">
<a class="btn btn-success btn-sm" href="<?php echo e(url($path), false); ?>/create"><i class="fa fa-save"></i><span class="hidden-xs">&nbsp;<?php echo e(trans('admin.new'), false); ?></span></a>
</div>
<?php endif; ?>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<div class="dd" id="<?php echo e($id, false); ?>">
<ol class="dd-list">
<?php echo $__env->renderEach($branchView, $items, 'branch'); ?>
</ol>
</div>
</div>
<!-- /.box-body -->
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/tree.blade.php ENDPATH**/ ?>

View File

@@ -1,38 +0,0 @@
<div class="box box-info" style="padding-bottom:20px;">
<div class="row" style="padding: 0 40px">
<div class="col-md-12">
<div class="box box-success box-solid">
<div class="box-header with-border">
<h3 class="box-title">核销成功统计数据</h3>
</div>
<div class="box-body table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>渠道</th>
<th>100元减10元优惠券成功数</th>
<th>100元减25元优惠券成功数</th>
<th>100元减50元优惠券成功数</th>
<th>200元减100元优惠券成功数</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr >
<td style="padding:5px;"><?php echo e($list['nickname'], false); ?></td>
<td><?php echo e($list['ysd10'], false); ?></td>
<td><?php echo e($list['ysd25'], false); ?></td>
<td><?php echo e($list['ysd50'], false); ?></td>
<td><?php echo e($list['ysd100'], false); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/resources/views/admin/finance/census.blade.php ENDPATH**/ ?>

View File

@@ -1,18 +0,0 @@
<table <?php echo $attributes; ?>>
<thead>
<tr>
<?php $__currentLoopData = $headers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $header): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($header, false); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $rows; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<?php $__currentLoopData = $row; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<td><?php echo $item; ?></td>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/widgets/table.blade.php ENDPATH**/ ?>

View File

@@ -1,8 +0,0 @@
<div class="row">
<?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-md-<?php echo e($field['width'], false); ?>">
<?php echo $field['element']->render(); ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/row.blade.php ENDPATH**/ ?>

View File

@@ -1,15 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo !$errors->has($errorKey) ? '' : 'has-error'; ?>">
<label for="<?php echo e($id, false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<input type="file" class="<?php echo e($class, false); ?>" name="<?php echo e($name, false); ?>" <?php echo $attributes; ?> />
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/file.blade.php ENDPATH**/ ?>

View File

@@ -1,29 +0,0 @@
<div class="<?php echo e($viewClass['form-group'], false); ?> <?php echo ($errors->has($errorKey['start'].'start') || $errors->has($errorKey['end'].'end')) ? 'has-error' : ''; ?>">
<label for="<?php echo e($id['start'], false); ?>" class="<?php echo e($viewClass['label'], false); ?> control-label"><?php echo e($label, false); ?></label>
<div class="<?php echo e($viewClass['field'], false); ?>">
<?php echo $__env->make('admin::form.error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="row" style="width: 390px">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text" name="<?php echo e($name['start'], false); ?>" value="<?php echo e(old($column['start'], $value['start']), false); ?>" class="form-control <?php echo e($class['start'], false); ?>" style="width: 160px" <?php echo $attributes; ?> />
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text" name="<?php echo e($name['end'], false); ?>" value="<?php echo e(old($column['end'], $value['end']), false); ?>" class="form-control <?php echo e($class['end'], false); ?>" style="width: 160px" <?php echo $attributes; ?> />
</div>
</div>
</div>
<?php echo $__env->make('admin::form.help-block', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/form/datetimerange.blade.php ENDPATH**/ ?>

View File

@@ -1,15 +0,0 @@
<?php if($errors->hasBag('exception') && config('app.debug') == true): ?>
<?php $error = $errors->getBag('exception');?>
<div class="alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4>
<i class="icon fa fa-warning"></i>
<i style="border-bottom: 1px dotted #fff;cursor: pointer;" title="<?php echo e($error->first('type'), false); ?>" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;"><?php echo e(class_basename($error->first('type')), false); ?></i>
In <i title="<?php echo e($error->first('file'), false); ?> line <?php echo e($error->first('line'), false); ?>" style="border-bottom: 1px dotted #fff;cursor: pointer;" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;"><?php echo e(basename($error->first('file')), false); ?> line <?php echo e($error->first('line'), false); ?></i> :
</h4>
<p><a style="cursor: pointer;" onclick="$('#laravel-admin-exception-trace').toggleClass('hidden');$('i', this).toggleClass('fa-angle-double-down fa-angle-double-up');"><i class="fa fa-angle-double-down"></i>&nbsp;&nbsp;<?php echo $error->first('message'); ?></a></p>
<p class="hidden" id="laravel-admin-exception-trace"><br><?php echo nl2br($error->first('trace')); ?></p>
</div>
<?php endif; ?>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/partials/exception.blade.php ENDPATH**/ ?>

View File

@@ -1,105 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo e(config('admin.title'), false); ?> | <?php echo e(trans('admin.login'), false); ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<?php if(!is_null($favicon = Admin::favicon())): ?>
<link rel="shortcut icon" href="<?php echo e($favicon, false); ?>">
<?php endif; ?>
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/bootstrap/css/bootstrap.min.css"), false); ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo e(admin_asset("vendor/laravel-admin/font-awesome/css/font-awesome.min.css"), false); ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/dist/css/AdminLTE.min.css"), false); ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/plugins/iCheck/square/blue.css"), false); ?>">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition login-page" <?php if(config('admin.login_background_image')): ?>style="background: url(<?php echo e(config('admin.login_background_image'), false); ?>) no-repeat;background-size: cover;"<?php endif; ?>>
<div class="login-box">
<div class="login-logo">
<a href="<?php echo e(admin_url('/'), false); ?>"><b><?php echo e(config('admin.name'), false); ?></b></a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg"><?php echo e(trans('admin.login'), false); ?></p>
<form action="<?php echo e(admin_url('auth/login'), false); ?>" method="post">
<div class="form-group has-feedback <?php echo !$errors->has('username') ?: 'has-error'; ?>">
<?php if($errors->has('username')): ?>
<?php $__currentLoopData = $errors->get('username'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i><?php echo e($message, false); ?></label><br>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<input type="text" class="form-control" placeholder="<?php echo e(trans('admin.username'), false); ?>" name="username" value="<?php echo e(old('username'), false); ?>">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback <?php echo !$errors->has('password') ?: 'has-error'; ?>">
<?php if($errors->has('password')): ?>
<?php $__currentLoopData = $errors->get('password'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<label class="control-label" for="inputError"><i class="fa fa-times-circle-o"></i><?php echo e($message, false); ?></label><br>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<input type="password" class="form-control" placeholder="<?php echo e(trans('admin.password'), false); ?>" name="password">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
<?php if(config('admin.auth.remember')): ?>
<div class="checkbox icheck">
<label>
<input type="checkbox" name="remember" value="1" <?php echo e((!old('username') || old('remember')) ? 'checked' : '', false); ?>>
<?php echo e(trans('admin.remember_me'), false); ?>
</label>
</div>
<?php endif; ?>
</div>
<!-- /.col -->
<div class="col-xs-4">
<input type="hidden" name="_token" value="<?php echo e(csrf_token(), false); ?>">
<button type="submit" class="btn btn-primary btn-block btn-flat"><?php echo e(trans('admin.login'), false); ?></button>
</div>
<!-- /.col -->
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 2.1.4 -->
<script src="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js"), false); ?> "></script>
<!-- Bootstrap 3.3.5 -->
<script src="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/bootstrap/js/bootstrap.min.js"), false); ?>"></script>
<!-- iCheck -->
<script src="<?php echo e(admin_asset("vendor/laravel-admin/AdminLTE/plugins/iCheck/icheck.min.js"), false); ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>
</body>
</html>
<?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/login.blade.php ENDPATH**/ ?>

View File

@@ -1,5 +0,0 @@
<?php $__env->startSection('title', __('Not Found')); ?>
<?php $__env->startSection('code', '404'); ?>
<?php $__env->startSection('message', __('Not Found')); ?>
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwwroot/pingan/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/404.blade.php ENDPATH**/ ?>

View File

@@ -1,9 +0,0 @@
<form action="<?php echo $action; ?>" pjax-container style="display: inline-block;">
<div class="input-group input-group-sm" style="display: inline-block;">
<input type="text" name="<?php echo e($key, false); ?>" class="form-control grid-quick-search" style="width: 200px;" value="<?php echo e($value, false); ?>" placeholder="<?php echo e($placeholder, false); ?>">
<div class="input-group-btn" style="display: inline-block;">
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
</div>
</div>
</form><?php /**PATH /home/wwwroot/pingan/vendor/encore/laravel-admin/src/../resources/views/grid/quick-search.blade.php ENDPATH**/ ?>

View File

@@ -1,8 +0,0 @@
<ul class="nav navbar-top-links navbar-right">
<li><h3>渠道后台管理系统</h3></li>
<li>
<a href="javascript:void(0);" id="refreshActive" title="刷新当前页面"><i class="fa fa-refresh"></i></a>
</li>
</ul>
<?php /**PATH /home/wwwroot/pingan/app/Merchant/Resources/views/common/msg.blade.php ENDPATH**/ ?>

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