johocn

第 1337 位会员

会员
个人信息
  • 加入于 2019-07-08 13:38:17
  • 最后登录时间 1年前
个人成就
  • 发表文章次数 31
  • 发布回复次数 34
  • 个人主页浏览次数 12
cron在linux下如何设置1年前

报错信息是这个 /usr/bin/env: php: No such file or directory

cron在linux下如何设置1年前

解决了。PHP配置问题,将php安装路径放到crontab里

!/bin/bash

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/php71/bin

微信小程序支付报错:JSAPI支付必须传openid3年前

https://github.com/fecshop/yii2_fecshop/blob/master/services/payment/WxpayMicro.php

在以上文件中添加如下语句:

        var_dump($order);
        echo '<br>===';
        var_dump($identity);
        echo '<br>==='.$identity->phone .'<br>==='.$identity->wx_micro_openid;
        exit();

返显信息如下:

array(10) { ["appid"]=> string(18) "隐藏" ["device_info"]=> string(4) "1000" ["err_code"]=> string(11) "PARAM_ERROR" ["err_code_des"]=> string(26) "JSAPI支付必须传openid" ["mch_id"]=> string(10) "隐藏" ["nonce_str"]=> string(16) "PewQgH4ihkniLh3K" ["result_code"]=> string(4) "FAIL" ["return_code"]=> string(7) "SUCCESS" ["return_msg"]=> string(2) "OK" ["sign"]=> string(32) "38002EE7C02E27B90CDCF10F8A77AF5B" } 


===object(fecshop\models\mysqldb\Customer)#153 (10) { ["_attributes":"yii\db\BaseActiveRecord":private]=> array(28) { ["id"]=> int(12) ["email"]=> NULL ["phone"]=> string(11) "138044隐藏" ["firstname"]=> NULL ["lastname"]=> NULL ["is_subscribed"]=> int(2) ["status"]=> int(1) ["birth_date"]=> NULL ["favorite_product_count"]=> int(0) ["type"]=> string(7) "default" ["access_token_created_at"]=> int(1611237760) ["allowance"]=> NULL ["allowance_updated_at"]=> NULL ["wx_password_is_set"]=> int(2) ["wallet"]=> string(4) "0.00" ["group_id"]=> NULL ["console_add_group"]=> int(1) ["point"]=> string(4) "0.00" ["customer_code"]=> NULL ["customer_parent_id"]=> NULL ["is_distribute"]=> int(1) ["distribute_wallet"]=> string(4) "0.00" ["distribute_group_id"]=> NULL ["distribute_status"]=> int(1) ["distribute_code"]=> string(36) "36470588-508a-11eb-b225-隐藏" ["distribute_created_at"]=> int(1609984011) ["distribute_parent_id"]=> NULL ["distribute_phone"]=> string(11) "隐藏" } ["_oldAttributes":"yii\db\BaseActiveRecord":private]=> array(42) { ["id"]=> int(12) ["password_hash"]=> string(60) "隐藏" ["password_reset_token"]=> NULL ["register_enable_token"]=> NULL ["email"]=> NULL ["phone"]=> string(11) "138044隐藏" ["firstname"]=> NULL ["lastname"]=> NULL ["is_subscribed"]=> int(2) ["auth_key"]=> string(32) "_mog0Grn85隐藏" ["status"]=> int(1) ["created_at"]=> int(1606028410) ["updated_at"]=> int(1606028410) ["password"]=> string(0) "" ["access_token"]=> string(32) "1ZLa51yK_隐藏" ["birth_date"]=> NULL ["favorite_product_count"]=> int(0) ["type"]=> string(7) "default" ["access_token_created_at"]=> int(1611237760) ["allowance"]=> NULL ["allowance_updated_at"]=> NULL ["wx_session_key"]=> string(24) "7ttZd隐藏" ["wx_openid"]=> NULL ["wx_micro_openid"]=> string(28) "oUDEQ0YzOXlfCg6kvktj2_隐藏" ["wx_password_is_set"]=> int(2) ["customer_bank"]=> NULL ["customer_bank_name"]=> NULL ["customer_bank_account"]=> NULL ["wallet"]=> string(4) "0.00" ["group_id"]=> NULL ["console_add_group"]=> int(1) ["point"]=> string(4) "0.00" ["customer_code"]=> NULL ["customer_parent_id"]=> NULL ["is_distribute"]=> int(1) ["distribute_wallet"]=> string(4) "0.00" ["distribute_group_id"]=> NULL ["distribute_status"]=> int(1) ["distribute_code"]=> string(36) "36470588-508a-11eb-b2隐藏c" ["distribute_created_at"]=> int(1609984011) ["distribute_parent_id"]=> NULL ["distribute_phone"]=> string(11) "1380隐藏" } ["_related":"yii\db\BaseActiveRecord":private]=> array(0) { } ["_relationsDependencies":"yii\db\BaseActiveRecord":private]=> array(0) { } ["_errors":"yii\base\Model":private]=> NULL ["_validators":"yii\base\Model":private]=> NULL ["_scenario":"yii\base\Model":private]=> string(7) "default" ["_events":"yii\base\Component":private]=> array(0) { } ["_eventWildcards":"yii\base\Component":private]=> array(0) { } ["_behaviors":"yii\base\Component":private]=> array(0) { } } 

===138044隐藏

===

隐藏处是部分数字或字符

微信小程序支付报错:JSAPI支付必须传openid3年前
   //①、获取用户openid
        $tools = new \JsApiPay();
        $identity = Yii::$app->user->identity;
        $openId = $identity->wx_micro_openid;

主要是$identity->wx_micro_openid没有值,其他$identity->id,$identity->phone等都有值

我要Yii::$app->user->identity这个函数的位置.

微信小程序支付报错:JSAPI支付必须传openid3年前

customer表有相关字段,Yii::$app->user->identity对象里私有对象里有$identity->wx_micro_openid,但是公有对象里没有,$identity->wx_micro_openid的值是空的,其他如$identity->id,$identity->phone等值正常。我觉得是不是我的Yii::$app->user->identity这个相关文件不全.我用composer update 更新了,没有变化.我没升级当前最高版本,我的版本2.8.4

微信小程序支付报错:JSAPI支付必须传openid3年前

Yii::$app->user->identity返回的字段没有$identity->wx_micro_openid的值,需要检查哪个文件?

微信小程序支付报错:JSAPI支付必须传openid3年前

按照上述使用说明修改依然报错,原因是$identity->wx_micro_openid的值是空的,其他如id,phone等值正常。 需要设置一下Yii::$app->user->identity返回的字段,不知在哪设置?

walletyo增加产品计量单位3年前

比如:克、千克、公斤、斤、袋、份、个等

walletyo增加产品计量单位3年前

最少代码增加计量单位功能完成,1、数据库直接建表;2、修改表product_flat增加一列;3、修改配置文件一处;增加修改3个文件。限制说明后台没有修改增加删除计量单位功能,通过数据库直接进行。点赞超50我可以放出源代码

UNIAPP开发fecmall环境3年前

我现在在一页一页开发,批量转换没试过。

Fecyo添加规格属性前台无法选择3年前

没有添加规格商品或没有库存,不知是不是这个原因

合并fecyo\services; fecbvc\services; fecalioos\services;项目下的image类,并更改了上传图片的路径带上传年月日3年前

namespace 命名空间\services; //名空间需要改动 放在优先运行的命名空间下,如walletyo\services;

fecyo1.7.9的services\Wx 文件缺少方法3年前

fecmall 2.7.2 fecyo1.7.9 版本指的是这两个吗

fecyo\services\Wx.php这个文件还是没有以下方法

Yii::$service->wx->getGzCodeImg()

fecyo1.7.9的services\Wx 文件缺少方法3年前

fecyo\services\Wx.php 谁有这个文件给一个

【Fecyo扩展系统】无法安装成功3年前

1、已安装应用->应用激活 2、按照addons\fecmall\walletyo\administer\install。php里的sql手动执行一遍

用阿里云oss之后图片地址对不上?3年前

合并fecyo\services; fecbvc\services; fecalioos\services;项目下的image类,并更改了上传图片的路径带上传年月日 http://www.fecmall.com/topic/4167

logo的图片 个人中心的头像 手动上传

fecyo 秒杀需求3年前

秒杀达到一定数量,活动自动结束。

fecyo 拼团需求3年前

1、最低成团人数,最高成团人数限制,达到最高人数限制团购活动结束。 2、团购是否可以实用与分销规则。 3、一级经销商可以发起团购。 4、团购展示页面加一些内容:货源地,发货地,预计发货时间

安装在线出售电子书籍PDF以及实物书籍的B2C商城报错n3年前

替代方案:install当中注释掉一下语句

// 12

    $db->createCommand(
        "INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Group List', 'customer_group', 1, '/customer/group/manager', 1583048470, 1583048470, 1)"
    )->execute();
    
    $lastInsertId = $db->getLastInsertID() ;
    
    $db->createCommand(
        "INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1567162984, 1567162984)"
    )->execute();
    
    // 13
    $db->createCommand(
        "INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Group Edit', 'customer_group', 2, '/customer/group/manageredit', 1583048505, 1583048505, 1)"
    )->execute();
    
    $lastInsertId = $db->getLastInsertID() ;
    
    $db->createCommand(
        "INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1567162984, 1567162984)"
    )->execute();
    
    // 14
    $db->createCommand(
        "INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Group Save', 'customer_group', 3, '/customer/group/managereditsave', 1583048576, 1583048576, 1)"
    )->execute();
    
    $lastInsertId = $db->getLastInsertID() ;
    
    $db->createCommand(
        "INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1567162984, 1567162984)"
    )->execute();
    
    // 15
    $db->createCommand(
        "INSERT INTO `admin_url_key` (`name`, `tag`, `tag_sort_order`, `url_key`, `created_at`, `updated_at`, `can_delete`) VALUES ('Customer Group Delete', 'customer_group', 4, '/customer/group/managerdelete', 1583048608, 1583048608, 1)"
    )->execute();
    
    $lastInsertId = $db->getLastInsertID() ;
    
    $db->createCommand(
        "INSERT INTO `admin_role_url_key` (`role_id`, `url_key_id`, `created_at`, `updated_at`) VALUES (4, " . $lastInsertId . ", 1567162984, 1567162984)"
    )->execute();
Your Site Analytics