dueros / bot-sdk

度秘bot开发的PHP版SDK
Apache License 2.0
72 stars 23 forks source link

No access right to write file #2

Open iflamed opened 6 years ago

iflamed commented 6 years ago

This is the exception:

file_put_contents(/www/sites/*******/vendor/dueros/bot-sdk/src/f4354d10b358b0e176fbd65699535113): 
failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/www/sites/*******/vendor/dueros/bot-sdk/src/f4354d10b358b0e176fbd65699535113): 
failed to open stream: Permission denied at /www/sites/*******/vendor/dueros/bot-sdk/src/Certificate.php:62)

In my tech stack, the vendor directory is not writeable, I think there should a method to change the directory where to write the RSA key.

My dueros/bot-sdk version is: v2.1.8

kira3007 commented 6 years ago

感谢提醒,这个确实是个问题。 我打算放到 /tmp