作者 董瑞恩
1 个管道 的构建 通过 耗费 4 秒

order

@@ -16,7 +16,7 @@ return [ @@ -16,7 +16,7 @@ return [
16 * 账号基本信息,请从微信公众平台/开放平台获取 16 * 账号基本信息,请从微信公众平台/开放平台获取
17 */ 17 */
18 'app_id' => 'wx75855734b0730d64', // AppID 18 'app_id' => 'wx75855734b0730d64', // AppID
19 - 'secret' => '4c20fc2db6e2324e4d0a85ec9a6692e7', // AppSecret 19 + 'secret' => 'a0abb5ab77ebcfbca7f9cdff4253de44', // AppSecret
20 'token' => 'your-token', // Token 20 'token' => 'your-token', // Token
21 'aes_key' => '', // EncodingAESKey,安全模式下请一定要填写!!! 21 'aes_key' => '', // EncodingAESKey,安全模式下请一定要填写!!!
22 /** 22 /**
@@ -46,8 +46,8 @@ return [ @@ -46,8 +46,8 @@ return [
46 * 微信支付 46 * 微信支付
47 */ 47 */
48 'payment' => [ 48 'payment' => [
49 - 'merchant_id' => '1509104971',  
50 - 'key' => 'ebfe7fba8f7a0fba3e19efcc547b956d', 49 + 'merchant_id' => '1499702342',
  50 + 'key' => '9nIGZwTj8EkwUeac5wBOK15ft9x16hm4',
51 'cert_path' => 'wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!! 51 'cert_path' => 'wechat/cert/apiclient_cert.pem', // XXX: 绝对路径!!!!
52 'key_path' => 'wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!! 52 'key_path' => 'wechat/cert/apiclient_key.pem', // XXX: 绝对路径!!!!
53 // 'device_info' => '013467007045764', 53 // 'device_info' => '013467007045764',
@@ -45,7 +45,7 @@ class AdminStatisticsController extends AdminBaseController{ @@ -45,7 +45,7 @@ class AdminStatisticsController extends AdminBaseController{
45 45
46 echo strtotime('2018-11-15 10:15:30'); 46 echo strtotime('2018-11-15 10:15:30');
47 47
48 - $sql="SELECT * FROM sleep_order where FROM_UNIXTIME(start_time,'%H:%i:%S')>'06:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'11:00:00'"; 48 + $sql="SELECT count(*) as num FROM sleep_order where FROM_UNIXTIME(start_time,'%H:%i:%S')>'06:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'11:00:00'";
49 $num=Db::query($sql); 49 $num=Db::query($sql);
50 50
51 51